Hi @Parteek
Probably the cause for the error is that <
sign should be <=
(when you reach the max length tweet, your padded_tensor becomes 0 (int) instead of the whole sequence without padding).
Sharing your solutions is against the code of conduct, so please remove your first image.
Cheers