Hi,
The is caused by the fact that the pytorch API expects either a string or a file-like object. And your Path object is neither of them.
Hence my recommendation to change it to a string to call into pytorch’s save/load APIs.