ZRPV3GAJQYQLXVL5LS3TFKZACVXSL43WEEA6PKF6ZUWHDUIIDSBQC
def inputs(width, height):
def cartesian(x,y):
x = x / width * math.pi
y = y / height * math.pi
return [math.sin(y) * math.cos(x), math.sin(y) * math.sin(x), math.cos(y)]
def row(y):
def c(x):
return cartesian(x,y)
return list(map(c, range(0, width)))
return tf.constant(list(map(row, range(0, height))))