I would like to do something like:
x = tf.Variable(tf.ones([100], dtype=tf.float32))
x0 = tf.Variable(tf.ones([1], dtype=tf.float32))
def f(x):
return tf.sin(x)
x[0] = x0
for i in range(1,100):
x[i+1] = f(x[i])
to construct a tensor 'x'. Is such a construct possible? I looked at 'tf.while_loop' but does not seem to help.