This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import OrderedDict | |
from typing import Callable, Dict, Optional | |
from warnings import warn | |
import torch | |
def _remove_all_forward_hooks( | |
module: torch.nn.Module, hook_fn_name: Optional[str] = None | |
) -> None: | |
""" |