Ho I just realized that our doc binding for global hooks is broken  
But you can use Module.register_module_forward_hook() to register a hook on all the modules that will run. So that you don’t have to hook every single Module in there.
You can find the doc inline for now here 5.