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

Method __init__

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

Source from the content-addressed store, hash-verified

433
434class Simple(Module):
435 def __init__(self):
436 super().__init__()
437 self.conv0 = Conv2d(1, 1, kernel_size=3, bias=False)
438 self.conv1 = Conv2d(1, 1, kernel_size=3, bias=False)
439 self.conv1.weight = self.conv0.weight
440
441 def forward(self, inputs):
442 x = self.conv0(inputs)

Callers

nothing calls this directly

Calls 2

Conv2dClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected