Screenshot_2020-01-07 Google Colaboratory(1)1073×451 36.7 KB

But when i only use encoder as a single class, then there is grad present. Its only when i initialize the seq2seq class contiaining the encoder the class, that grad is absent.