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

Method load

imperative/python/megengine/utils/network_node.py:323–326  ·  view source on GitHub ↗
(cls, opr)

Source from the content-addressed store, hash-verified

321class ReadOnlyOpNode(OpNode):
322 @classmethod
323 def load(cls, opr):
324 obj = super(ReadOnlyOpNode, cls).load(opr)
325 obj.type = opr.type
326 return obj
327
328 def compile(self):
329 assert self._opr is not None

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected