MCPcopy 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
73def is_constant(expr):
74 return isinstance(expr, Constant)
75
76
77def is_getattr(expr):

Callers 7

init_skip_exprsMethod · 0.85
run_transformMethod · 0.85
run_transformMethod · 0.85
get_const_valueFunction · 0.85
_visit_const_patternMethod · 0.85
_visit_var_patternMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected