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

Method set_var_as_oup

imperative/python/megengine/xla/ir_utils.py:172–174  ·  view source on GitHub ↗
(self, oup_var)

Source from the content-addressed store, hash-verified

170 self.inputs.append(inp_var.id)
171
172 def set_var_as_oup(self, oup_var):
173 assert oup_var.id in self.vars
174 self.outputs.append(oup_var.id)
175
176 def get_var(self, idx):
177 assert isinstance(idx, int)

Callers 1

__call__Method · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected