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 4.0 compliance #31

Open
4 tasks
nshaud opened this issue Jul 30, 2018 · 0 comments
Open
4 tasks

PyTorch 4.0 compliance #31

nshaud opened this issue Jul 30, 2018 · 0 comments
Assignees

Comments

@nshaud
Copy link
Owner

nshaud commented Jul 30, 2018

Since PyTorch 4.0, some things have been deprecated and should be fixed:

  • Variable does not exist anymore
  • loss.data[0] should now be loss.item()
  • volatile flag does not do anything, use no_grad instead
  • .to() method allows us to write device-agnostic code
@nshaud nshaud self-assigned this Jul 30, 2018
@nshaud nshaud changed the title PyTorch 5.0 compliance PyTorch 4.0 compliance Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant