How to tranform tf.TensorArray to pytorch

How to tranform tf.TensorArray to pytorch , But I have no idea how to do it.

this is the tf function describe
tf.TensorArray(
dtype,
size=None,
dynamic_size=None,
clear_after_read=None,
tensor_array_name=None,
handle=None,
flow=None,
infer_shape=True,
element_shape=None,
colocate_with_first_write_call=True,
name=None
)
and my example : mask = tf.TensorArray(dtype=tf.float32, size=1, dynamic_size=True)