Closed shaltielshmid closed 11 months ago
Can you provide such a pickle file? I don't think I've seen one like that before.
Also, are you perhaps able to change the Java version as well, to keep in sync?
Generally, the library PyTorch
return a tuple for the persistentId when using torch.save
.
For an example, you can find one on the official pickle documentation page here. Their example uses a tuple as the persistentId.
Also, I'm adding another feature to allow for persistentId when pickling, I should update the PR soon.
Updated PR summary:
Update:
Thanks for working on this, I'll have a look soon
Hi @irmen , haven't heard from you in a few days. Wanted to check in about this PR, is there anything I can do to help merge it in?
Sorry I haven't found some time to actually review this yet. Will attempt to do so before the end of the week.
Looking good! Thank you for the contribution.
@irmen Thanks for merging! I saw you updated the version number to 1.5.0 - when do you think you'll upload the new version to NuGet?
Thanks!
done
Thanks!
I've encountered a case when unpickling a file in C# where the persistentId is actually a tuple of items, and then when the function is called it just gets a string "System.Object[]" instead of the contents of the object.