Skip to content

RuntimeError: cannot register a hook on a tensor that doesn't require gradient #146

Locked Answered by frgfm
RuixiangZhao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @RuixiangZhao,

Thanks for bringing up that up 🙏
First, I'd like to point a few things out :

  • duplicates do not benefit developers, there is already a discussion #132 on this topic, it would have been best to put this information over here 🙏
  • as mentioned in the other discussion, I clearly made issue templates specifically for this purpose. Discussions are for open questions / suggestions / etc, bug reports are more relevant as GH issues. I took time to make the issue template so that you provide all the information necessary for me to help you debug this 😅 (this includes your full relevant environment setup, and a fully executable script)

In this case:

  • torch & torchcam versions are re…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RuixiangZhao
Comment options

Answer selected by RuixiangZhao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
duplicate This issue or pull request already exists
2 participants