torch.fx.passes.pass_manager.log_hook
- torch.fx.passes.pass_manager.log_hook(fn, level=20)
Logs callable output.
This is useful for logging output of passes. Note
inplace_wrapperreplaces the pass output with the modified object. If we want to log the original output, apply this wrapper beforeinplace_wrapper.Example: