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

Method __init__

imperative/python/test/integration/test_converge.py:52–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50
51class XORNet(Module):
52 def __init__(self):
53 self.mid_layers = 14
54 self.num_class = 2
55 super().__init__()
56
57 self.fc0 = Linear(self.num_class, self.mid_layers, bias=True)
58 self.fc1 = Linear(self.mid_layers, self.mid_layers, bias=True)
59
60 self.fc2 = Linear(self.mid_layers, self.num_class, bias=True)
61
62 def forward(self, x):
63 x = self.fc0(x)

Callers

nothing calls this directly

Calls 1

LinearClass · 0.90

Tested by

no test coverage detected