When using torch.save as stated here, I'm getting
PermissionError: [Errno 13] Permission denied: path-to-folder
Here is the relevant code:
if isdir(Policy.checkpoint_path): torch.save( { 'model_state_dict': self.state_dict(), 'optimizer_state_dict': optimizer.state_dict(), }, 'D:\git\stav\stav-RL\policy_save')
notice this gives the same error with any/all of the following attempts:
- changing folder permissions
- changing python permissions
- working with relative path
- changing the direcory of the script using
chdir
pyorch uses pickle under the hood.
I am running on windows 10.
Please tell me how to get past that permissions problem