MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _unwrap_func

Function _unwrap_func

imperative/python/megengine/xla/utils.py:61–66  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

59
60
61def _unwrap_func(f):
62 if isinstance(f, property):
63 return cast(property, f).fget
64 elif isinstance(f, cached_property):
65 return f.func
66 return f
67
68
69def use_cpp_class(cpp_cls):

Callers 2

wrapperFunction · 0.85
use_cpp_methodFunction · 0.85

Calls 1

castFunction · 0.85

Tested by

no test coverage detected