pop the original function from cache.
(obj)
| 711 | |
| 712 | |
| 713 | def _del_original_func(obj): |
| 714 | """pop the original function from cache.""" |
| 715 | _original_funcs.pop(obj.__name__, None) |
| 716 | if torch.cuda.is_available(): # clean up the cached function |
| 717 | torch.cuda.synchronize() |
| 718 | torch.cuda.empty_cache() |
| 719 | |
| 720 | |
| 721 | def _call_original_func(name, module, *args, **kwargs): |