Skip to content

hooks

Hook

Create a hook on m with hook_func.

hook_fn(module, input, output)

Applies hook_func to module, input, output.

remove()

Remove the hook from the model.

Hooks

Create several hooks on the modules in ms with hook_func.

remove()

Remove the hooks from the model.