RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
ramild opened this issue · 1 comments
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).
@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.