This does not seem right. Given that the output of each LSTM layer is a tuple, not a Tensor object.
As a matter of fact if you try this and then pass a tensor through it, most likely it’ll give you back the following error:
AttributeError: 'tuple' object has no attribute 'size'