can you plz provide me with entire_l method of your class
and plz check if you are doing loss.backward() more than once!!!
and also remove inplace operations like += or add_() with the model parameter of outputs!