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

Class Copy

imperative/python/megengine/utils/network_node.py:578–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576
577
578class Copy(OpNode):
579 type = "Copy"
580 opdef = builtin.Copy
581
582 @classmethod
583 def load(cls, opr):
584 obj = super(Copy, cls).load(opr)
585 obj.params["comp_node"] = opr.outputs[0].comp_node
586 return obj
587
588
589class ArgsortForward(OpNode):

Callers 4

toMethod · 0.50
record_node2valueMethod · 0.50
wrapped_fnFunction · 0.50
copyFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected