Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ safe_call
Method
safe_call
imperative/python/megengine/module/qat/module.py:42–43 ·
view source on GitHub ↗
(func)
Source
from the content-addressed store, hash-verified
40
""
"
41
42
def
safe_call(func):
43
return
func()
if
func is not None
else
None
44
45
if
self.with_act:
46
self.act_observer = safe_call(qconfig.act_observer)
Callers
nothing calls this directly
Calls
1
func
Function · 0.50
Tested by
no test coverage detected