Anjali_Raj:

I also tried to use .clone() for the parameters,but still it didn’t work.


Why did you think this would make it work?
Why are you calling .float() on many of the tensors? What is this supposed to do?