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

Add torch save and load kwargs #3831

Merged
merged 6 commits into from
Nov 1, 2022
Merged

Conversation

JonathanGrant
Copy link
Contributor

This lets us do nice things like set pickle_module to cloudpickle.

I went with **kwargs approach so that any updates to torch.save or load are automatically supported.
However, I decided to keep the existing pass through kwargs as is in case someone is relying on them as positional arguments. We can make this a breaking change if that is preferred, though.

(btw thank you for the excellent library and lectures!)

This lets us do nice things like set `pickle_module`
preserve other kwargs in case someone is relying on their position
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@warner-benjamin
Copy link
Collaborator

The CI error here should be resolved when #3828 is merged into the master branch.

@jph00 jph00 closed this Nov 1, 2022
@jph00 jph00 reopened this Nov 1, 2022
@jph00 jph00 closed this Nov 1, 2022
@jph00 jph00 reopened this Nov 1, 2022
@JonathanGrant JonathanGrant reopened this Nov 1, 2022
@jph00 jph00 merged commit a3f8e41 into fastai:master Nov 1, 2022
@jph00
Copy link
Member

jph00 commented Nov 1, 2022

Thanks for getting this all sorted out! :D

@JonathanGrant JonathanGrant deleted the kwarg-save-load branch November 1, 2022 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants