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

Method __init__

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

Source from the content-addressed store, hash-verified

646 # test whether __repr__ can deal with module delete
647 class ConvModel3(Module):
648 def __init__(self):
649 super().__init__()
650 self.conv1 = Conv2d(3, 128, 3, bias=False)
651 self.softmax = Softmax(100)
652
653 def forward(self, inputs):
654 pass

Callers

nothing calls this directly

Calls 3

Conv2dClass · 0.90
SoftmaxClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected