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

Method __init__

imperative/python/test/unit/utils/test_profiler.py:20–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19class Simple(Module):
20 def __init__(self):
21 super().__init__()
22 self.a = Parameter([1.23], dtype="float32")
23
24 def forward(self, x):
25 x = x * self.a

Callers

nothing calls this directly

Calls 1

ParameterClass · 0.90

Tested by

no test coverage detected