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

Pytorch 0.4 compatibility (uses checkpointing) #35

Merged
merged 5 commits into from
Apr 27, 2018
Merged

Conversation

gpleiss
Copy link
Owner

@gpleiss gpleiss commented Apr 26, 2018

This PR makes the code PyTorch 0.4 compatible. It will no longer be compatible for 0.3 or older versions.

This makes use of the checkpointing feature of PyTorch to do the efficient computations. The checkpointing feature seems to be really smart, and manages the memory much more efficiently than the original implementation.

This also merges the efficient model implementation into the original one.

I'll merge this tomorrow once I confirm that the new version gets the same error as the old version.

@gpleiss
Copy link
Owner Author

gpleiss commented Apr 26, 2018

Fixes #31 and #32

@gpleiss gpleiss merged commit e2f0d0f into master Apr 27, 2018
@gpleiss gpleiss deleted the pytorch_0.4 branch April 27, 2018 12:51
@gpleiss
Copy link
Owner Author

gpleiss commented Apr 27, 2018

Everything works!

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.

None yet

1 participant