# tensorplay.nn.modules.module.register_module_backward_hook

Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.modules.module.register_module_backward_hook.html

# tensorplay.nn.modules.module.register_module_backward_hook

tensorplay.nn.modules.module.register_module_backward_hook(hook: [Callable](https://docs.python.org/3/library/typing.html#typing.Callable)[[[Module](tensorplay.nn.modules.module.Module.html#tensorplay.nn.modules.module.Module), [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)[TensorBase, ...] | TensorBase, [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)[TensorBase, ...] | TensorBase], [None](https://docs.python.org/3/library/constants.html#None) | [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)[TensorBase, ...] | TensorBase]) &#x2192; RemovableHandle[[source]](../_modules/tensorplay/nn/modules/module.html#register_module_backward_hook)

Register a backward hook common to all the modules.

This function is deprecated in favor of
[tensorplay.nn.modules.module.register_module_full_backward_hook()](tensorplay.nn.modules.module.register_module_full_backward_hook.html#tensorplay.nn.modules.module.register_module_full_backward_hook)
and the behavior of this function will change in future versions.

Returns:

a handle that can be used to remove the added hook by calling
handle.remove()

Return type:

tensorplay.utils.hooks.RemovableHandle
