code: def hook_output (module:nn.Module, detach:bool=True, grad:bool=False)->Hook:
      "Return a `Hook` that stores activations of `module` in `self.stored`"
      return Hook(module, _hook_inner, detach=detach, is_forward=not gradf hook_output (module:nn.Module, detach:bool=True, grad:bool=False)->Hook:
      "Return a `Hook` that stores activations of `module` in `self.stored`"
      return Hook(module, _hook_inner, detach=detach, is_forward=not grad)
docs: Return a `Hook` that stores activations of `module` in `self.stored`