Document is at https://www.tensorflow.org/api_docs/python/tf/TensorArray
This code snippet generates several tensorflow ops:
[TensorArrayV3, TensorArrayGatherV3, TensorArraySizeV3, TensorArrayWriteV3]
tensor_array = tf.TensorArray(dtype=tf.float32, size=1, dynamic_size=True)
tensor_array = tensor_array.write(tf.constant(0), [2.0, 3.0])
tensor_array = tensor_array.write(tf.constant(1), [4.0, 5.0])
out = tensor_array.stack()
One possibility to support these is to enhance relay.Tuple. relay.Tuple is dynamic, but it lacks ability to update items in it and it’s size can’t be get in runtime.
Any suggestion about this issue?