torch.nn.modules.module.register_module_module_registration_hook
- torch.nn.modules.module.register_module_module_registration_hook(hook)
Register a module registration hook common to all modules.
The hook will be called every time
is invoked. It should have the following signature: