Have tried to decorate a function containing tf.TensorArray with tf.function and worked fine in tf version 2.4.0.
tf.TensorArray
tf.function
However, when the tf
tf