I converted the model to the newer version as below.
loading the model saved in pytorch 1.0.*
model = torch.load(model_out_path+ 'Saved_model.pth')
Now save the model again using model.state_dict(), it will save model in version 1.1
torch.save(model.state_dict(), "model_new.pth")
make a new network class’ object and load the recently saved model:
model = myNet()
model.load_state_dict(torch.load("model_new.pth"))
model.eval()

Now no errors