Skip to content

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

Answered by frgfm
kevinxu-cn97 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi all @kevinxu-cn97 @JACKCHAN000 @RuixiangZhao 👋

As discussed in #146, here are a few updates:

  • so far, I haven't received enough information from you to debug this properly. I need to be able to either reproduce the bug or identify the source clearly to help you.
  • Can any of you open a GH issue on this repo please? 🙏 There is a bug report template, just follow it, it will be much more helpful than a discussion, which is not exactly suited for this situation.
  • If it was a mistake on your end, please share it with others, this is open-source, it's better when it goes both ways :)

One last thing to illustrate my struggle here:

  1. I first tried to reproduce the initial problem reported by @kev…

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@kevinxu-cn97
Comment options

@frgfm
Comment options

Comment options

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

Comment options

You must be logged in to vote
2 replies
@RuixiangZhao
Comment options

@frgfm
Comment options

Answer selected by frgfm
Comment options

You must be logged in to vote
3 replies
@richardbransonzp
Comment options

@frgfm
Comment options

@richardbransonzp
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
module: methods Related to torchcam.methods
6 participants