SourceChangeWarning for LSTM model , now it outputs the same output

I recently trained an LSTM model to do sequence classification. Earlier I was getting pretty good accuracy, but now when I load the saved model and run it on the same train and test set it consistently gives me the same output no matter what class. It also gives me a SourceChangeWarning and suggests me to use torch.nn.Module.dump_patch = True, which I did and I got a .patch file, but when I run patch -p0 < lstm.patch it isnt able to find it.

The definition of the lstm class is here -

When I run patch -p0 < lstm_proc.patch it says “cant find file at input line 3” Perhaps you used the wrong -p

The wrapper file that I use to load the model is https://github.com/gtm2122/viewclassification/blob/master/view_testls/LSTM_view/test_wrap.py