Thanks for reply. Haha, yes, I agree, it’s a good hint.  I still cannot save anything in the created folder. But, when I run these two lines of code separately from the train method, torch.save can save something. This ‘/’ wasn’t in the original code as well. What could be possible wrong? I am running this code on a server.