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

Method __init__

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

Source from the content-addressed store, hash-verified

343 x = self.bn(x)
344
345 def __init__(self):
346 super().__init__()
347 self.bn = BatchNorm2d(4)
348 self.seq = Sequential(BatchNorm2d(4), self.InnerModule(),)
349
350 def forward(self, x):
351 return x

Callers

nothing calls this directly

Calls 3

BatchNorm2dClass · 0.90
SequentialClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected