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

Method __init__

imperative/python/test/unit/utils/test_dump_naming.py:39–41  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

37def test_auto_naming(symbolic):
38 class Simple(M.Module):
39 def __init__(self, name):
40 super().__init__()
41 self.name = name
42
43 def forward(self, x):
44 return x + x

Callers

nothing calls this directly

Calls 1

ParameterClass · 0.90

Tested by

no test coverage detected