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

Method __init__

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

Source from the content-addressed store, hash-verified

622 # test whether __repr__ can deal with module re-reference
623 class ConvModel2(Module):
624 def __init__(self):
625 super().__init__()
626 self.conv1 = Conv2d(3, 128, 3, bias=False)
627 self.conv2 = self.conv1
628 self.conv3 = self.conv1
629
630 def forward(self, inputs):
631 pass

Callers

nothing calls this directly

Calls 2

Conv2dClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected