In pytorch, what is the use case of hooks on Tensors rather than on Modules?

后端 未结 0 1469
半阙折子戏
半阙折子戏 2021-02-14 11:54

In pytorch, we can add hooks to Modules, but also to Tensors. I can see the use cases for adding hooks to Modules. But since any Tensor is generally created by an application of

相关标签:
回答
  • 消灭零回复
提交回复
热议问题