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

RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn #13

Open
ramild opened this issue Jun 11, 2021 · 1 comment

Comments

@ramild
Copy link

ramild commented Jun 11, 2021

Hi! This is almost a duplicate of this issue, except I wanted to add that this behavior is robust for me and I get this error every time I train the model.

RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

Nitish suggested earlier that I should try to restart the training, but it doesn't work for me. I thought, maybe this has something to do with the fact that I'm using the master version of this repo which might be too old. Is it possible that it contains some bugs that were fixed in the later versions? Does it make sense for me to try and switch to other branches of this repository, like qmdr or ai2 or to the code from the latest pre-release?

I'm for now only interested in getting it to work in some way or another to get roughly the same numbers as in the paper (with or without QDMR representations and paired training).

@ramild
Copy link
Author

ramild commented Jun 14, 2021

@nitishgupta Hi! Could you please help me with this issue? For some reason, I'm still not able to train the model properly, and not sure now if I'm using the right branch of this repo.

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

No branches or pull requests

1 participant