Brando_Miranda:

Why did it decide to throw an error this time but not before?


I don’t know.
Since you said that you did not change your pytorch version, my best guess is that you changed the version of the libary providing the Path object?

So to clarify, when can I use Path objects with pytorch? is it just not with torch.save and torch.load?

To be safe i would say you should never give a Path object directly to the pytorch API as it is not supported (even though it might work by change for some versions of pytorch/Path object).