Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ is_constant
Function
is_constant
imperative/python/megengine/traced_module/expr.py:73–74 ·
view source on GitHub ↗
(expr)
Source
from the content-addressed store, hash-verified
71
72
73
def
is_constant(expr):
74
return
isinstance(expr, Constant)
75
76
77
def
is_getattr(expr):
Callers
7
auto_naming_for_outputs
Method · 0.85
init_skip_exprs
Method · 0.85
run_transform
Method · 0.85
run_transform
Method · 0.85
get_const_value
Function · 0.85
_visit_const_pattern
Method · 0.85
_visit_var_pattern
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected