Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ __init__
Method
__init__
imperative/python/test/integration/test_save_load.py:14–16 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
12
13
class
Simple(Module):
14
def
__init__(self):
15
super().__init__()
16
self.a = Parameter([1.23], dtype=np.float32)
17
18
def
forward(self, x):
19
x = x * self.a
Callers
nothing calls this directly
Calls
2
Parameter
Class · 0.90
__init__
Method · 0.45
Tested by
no test coverage detected