Made a folder in my drive and when I tried to save the model I get permission denied? How do I fix this? Windows 10 Pytorch 0.40 and the folder was already made.
Edited: I works now -> save.(model.state_dict(), ‘mode.pth’)
Made a folder in my drive and when I tried to save the model I get permission denied? How do I fix this? Windows 10 Pytorch 0.40 and the folder was already made.
Edited: I works now -> save.(model.state_dict(), ‘mode.pth’)
Thanks it worked for me
I was doing the mistake of providing path but not file name.
Silly mistake …
PATH = “/home/folder1/folder2”
torch.save(model.state_dict(), os.path.join(PATH,“filename.pth”))
Silly me. Same mistake lol.