As it seems torch.save()
just saves to the disk, so it seems there is no need for (server) parent path, just the name of the file , in my case : '
http://my_model.pt '
.
Thanks for you help CostlyOstrich36
The problem is with the path I am trying to save the model to.Therefore my question How do I extract paths inside ClearML?
ClearML logs the paths as they are when torch.save()
is run. Your problem currently is getting torch.save()
to work, no?
I think you need to specify some pythonic object to work with torch.save() - as it appears in their documentation:
https://pytorch.org/docs/stable/generated/torch.save.html
yes of course I specified it with :torch.save(state, f_path)
where f_path = os.path.join(tempfile.gettempdir(), 'trained_models') + '\
http://my_model.pt '