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

Method _get_opr

imperative/python/megengine/utils/network.py:521–525  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

519 return None
520
521 def _get_opr(self, x):
522 if x.id in self.all_oprs_map:
523 return self.all_oprs_map[x.id]
524 else:
525 return None
526
527 def _get_var(self, x):
528 r"""Convert :class:`~._imperative_rt.graph.VarNode` to :class:`~.VarNode`."""

Callers 1

_get_varMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected