Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
61
def
_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
69
def
use_cpp_class(cpp_cls):
Callers
2
wrapper
Function · 0.85
use_cpp_method
Function · 0.85
Calls
1
cast
Function · 0.85
Tested by
no test coverage detected