Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ forward
Method
forward
imperative/python/test/unit/jit/test_tracing.py:67–71 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
65
self.a = Parameter([1.0], dtype=np.float32)
66
67
def
forward(self, x):
68
x = x * self.a
69
# will result into a copy of output in grad
70
x = F.exp(x)
71
return
x
72
73
ys = {False: [], True: []}
74
Callers
nothing calls this directly
Calls
1
exp
Method · 0.45
Tested by
no test coverage detected