We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since PyTorch 4.0, some things have been deprecated and should be fixed:
Variable
loss.data[0]
loss.item()
volatile
no_grad
.to()
The text was updated successfully, but these errors were encountered:
nshaud
No branches or pull requests
Since PyTorch 4.0, some things have been deprecated and should be fixed:
Variable
does not exist anymoreloss.data[0]
should now beloss.item()
volatile
flag does not do anything, useno_grad
instead.to()
method allows us to write device-agnostic codeThe text was updated successfully, but these errors were encountered: