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

Method __init__

imperative/python/test/unit/module/test_module.py:33–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31
32class MLP(Module):
33 def __init__(self):
34 super().__init__()
35 self.dense0 = Linear(28, 50)
36 self.dense1 = Linear(50, 20)
37
38 def forward(self, x):
39 x = self.dense0(x)

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

LinearClass · 0.90

Tested by

no test coverage detected