Skip to content

Delete autograd.Variable as it is deprecated since pytorch v0.4.1 #160

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

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

arlapin
Copy link
Contributor

@arlapin arlapin commented Feb 27, 2021

What does this implement/fix? Explain your changes.

Variable(tensor) just returns a Tensor since v0.4.1.
See https://pytorch.org/docs/0.4.1/autograd.html?highlight=autograd#variable-deprecated

selene-cpu.yml points to pytorch 0.4.1
selene-gpu*.yml points to pytorch 1.0.1

What testing did you do to verify the changes in this PR?

Ran train script and training did work fine.

@arlapin
Copy link
Contributor Author

arlapin commented Feb 27, 2021

PTAL @kathyxchen

@kathyxchen
Copy link
Collaborator

Thanks @arlapin again for these contributions - sorry we've been slow to approve & merge everything, we are working on the next large release. LGTM!

@kathyxchen kathyxchen merged commit 82ab77a into FunctionLab:master Jun 4, 2021
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.

2 participants