i\'m trying to implement tbptt in pytorch.
I\'ve found an implementation below in a forum and I get the logic behind the code but I keep getting a "inplace opera