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

Method __init__

imperative/python/test/integration/test_optimizer.py:29–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27
28class Simple(Module):
29 def __init__(self):
30 super().__init__()
31 self.a = Parameter(1.23, dtype=np.float32)
32
33 def forward(self, x):
34 x = x * self.a

Callers

nothing calls this directly

Calls 2

ParameterClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected