-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
第三章 Tensor和autograd第90页代码bug #217
Comments
改成t.arange(-2,4).float()就可以了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
文章代码运行错误,(第三段代码)
x = V(t.arange(-2,4),requires_grad = True)
.运行时出现“only Tensor of floating point type can require grad.”错误
The text was updated successfully, but these errors were encountered: