MCPcopy Index your code
hub / github.com/Project-MONAI/MONAI / _del_original_func

Function _del_original_func

tests/test_utils.py:713–718  ·  view source on GitHub ↗

pop the original function from cache.

(obj)

Source from the content-addressed store, hash-verified

711
712
713def _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
721def _call_original_func(name, module, *args, **kwargs):

Callers 2

_wrapperMethod · 0.85
_wrapperMethod · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…