Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch_serialize() #908

Merged
merged 2 commits into from
Oct 17, 2022
Merged

torch_serialize() #908

merged 2 commits into from
Oct 17, 2022

Conversation

dfalbel
Copy link
Member

@dfalbel dfalbel commented Oct 17, 2022

Adds:

  • A test making sure you can correctly load a state dict into a corrupt module.
  • A torch_serialize function that can be used to get a raw vector containing a serialized torch object.

Fix #862

@dfalbel dfalbel merged commit ece555e into main Oct 17, 2022
@dfalbel dfalbel deleted the nn-serialize branch October 17, 2022 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request] Way to load state dict for corrup model (invalid external pointers)
1 participant