Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
class
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
Parameter
Class · 0.90
Tested by
no test coverage detected