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

Method __init__

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

Source from the content-addressed store, hash-verified

599 # test whether __repr__ can deal with module reassign
600 class ConvModel1(Module):
601 def __init__(self):
602 super().__init__()
603 self.conv1 = Conv2d(3, 128, 3, bias=False)
604 self.conv2 = Conv2d(3, 128, 3, padding=1, bias=False)
605 self.conv1 = Conv2d(3, 256, 3, dilation=2, bias=False)
606
607 def forward(self, inputs):
608 pass

Callers

nothing calls this directly

Calls 2

Conv2dClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected