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

Class LoweringRuleContext

imperative/python/megengine/xla/lower.py:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81@dataclasses.dataclass
82class LoweringRuleContext:
83 module_context: ModuleContext
84 op: OpInfo
85 vars_in: Sequence[VarInfo]
86 vars_out: Sequence[VarInfo]
87 param: Dict = None
88
89 def replace(self, **kw):
90 return dataclasses.replace(self, **kw)
91
92
93def _unwrap_singleton_ir_values(x):

Callers 1

lowering_opsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected