TensorArrays in PyTorch?

Is there anything like TensorFlow’s TensorArray in PyTorch?

There is no such thing, but you can just use the python built-in types like lists or tuples.