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

bug about generater #7

Open
carry-xz opened this issue Jan 26, 2021 · 3 comments
Open

bug about generater #7

carry-xz opened this issue Jan 26, 2021 · 3 comments
Labels
question Further information is requested

Comments

@carry-xz
Copy link

hi, I find some err when trying to use the adahessian optimizer, like
''AttributeError: 'torch._C.Generator' object has no attribute 'device'",
pytorch version: 1.1.0

@davda54
Copy link
Owner

davda54 commented Jan 26, 2021

Hi, please update your PyTorch to the newest version :)

@davda54 davda54 added the question Further information is requested label Jan 27, 2021
@carry-xz
Copy link
Author

thanks for reply, i update pytorch to 1.6, and find a new err
"line 83, RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn"
what is your version of pytorch?

@ayman-makki
Copy link

@carry-xz I have the same issue than you with tensors that have been detached or for which the gradient has not been computed ... although the index element of the tensors vary around 20 for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants