Closed yw155 closed 4 years ago
Hi yw155,
Thanks for reaching out! The documentation about forward hooks for nn.Module
can be found here.
Regarding the function _register_hooks
you are referring to, it successively does the following:
An example of utilisation of this function is given here.
Hope this helps,
Pierre
Thank you for your detailed illustration.
Hi @pierrestock, I would like to ask you how to use the function '_register_hooks' in watcher.py. Could you provide some example codes? In addition, I notice that It may generate errors during saving a model as torch.save may not support the function 'fwd_hook'. Thank you.