[Solved][PyTorch] AttributeError: 'tuple' object has no ...
clay-atlas.com › us › blogJul 18, 2021 · AttributeError: 'tuple' object has no attribute 'size' Fortunately, after checking, I immediately found that someone had the same error as me, was also under the LSTM model layer, and was also setting batch_size=True. After using the recommended tools, my problem was indeed solved, and the LSTM model was successfully drawn.