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

Method load

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

Source from the content-addressed store, hash-verified

619class RNGOpr(OpNode):
620 @classmethod
621 def load(cls, opr):
622 obj = super(RNGOpr, cls).load(opr)
623 if len(obj.params) == 3:
624 obj.opdef = builtin.GaussianRNG
625 obj.type = "GaussianRNG"
626 else:
627 obj.opdef = builtin.UniformRNG
628 obj.type = "UniformRNG"
629 return obj
630
631
632class Linspace(OpNode):

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected