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

Method __init__

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

Source from the content-addressed store, hash-verified

475
476class Simple2(Module):
477 def __init__(self):
478 super().__init__()
479 self.conv1 = Conv1d(1, 1, kernel_size=3, bias=False)
480 self.conv0 = Conv1d(1, 1, kernel_size=3, bias=False)
481 self.conv1.weight = self.conv0.weight
482
483 def forward(self, inputs):
484 pass

Callers

nothing calls this directly

Calls 2

Conv1dClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected