Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ forward
Method
forward
imperative/python/megengine/module/linear.py:85–86 ·
view source on GitHub ↗
(self, inp)
Source
from the content-addressed store, hash-verified
83
""
"
84
85
def
forward(self, inp):
86
return
relu(self.calc_linear(inp, self.weight, self.bias))
Callers
nothing calls this directly
Calls
2
calc_linear
Method · 0.80
relu
Function · 0.50
Tested by
no test coverage detected