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

Method __init__

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

Source from the content-addressed store, hash-verified

262 x = self.bn(x)
263
264 def __init__(self):
265 super().__init__()
266 self.bn = BatchNorm2d(4)
267 self.a = [
268 BatchNorm2d(4),
269 {"x": BatchNorm2d(4), "y": [BatchNorm2d(4), self.InnerModule()], "z": 0},
270 (self.InnerModule(),),
271 ]
272
273 def forward(self, x):
274 return x

Callers

nothing calls this directly

Calls 2

BatchNorm2dClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected