This bug is reported by @shahrukhx01
When input text size is more than the text size model can process we get this -
(The size of tensor a (1453) must match the size of tensor b (512) at non-singleton dimension 1)
Currently we don't have proper solution hence as a hack we will truncate text to required size before passing to model.