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

Method __init__

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

Source from the content-addressed store, hash-verified

14
15class MLP(Module):
16 def __init__(self):
17 super().__init__()
18 self.dense0 = Linear(28, 50)
19 self.dense1 = Linear(50, 20)
20
21 def forward(self, x):
22 x = self.dense0(x)

Callers 1

__init__Method · 0.45

Calls 1

LinearClass · 0.90

Tested by

no test coverage detected