MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _cache_original_func

Function _cache_original_func

tests/test_utils.py:708–710  ·  view source on GitHub ↗

cache the original function by name, so that the decorator doesn't shadow it.

(obj)

Source from the content-addressed store, hash-verified

706
707
708def _cache_original_func(obj) -> None:
709 """cache the original function by name, so that the decorator doesn't shadow it."""
710 _original_funcs[obj.__name__] = obj
711
712
713def _del_original_func(obj):

Callers 2

__call__Method · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…