Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ forward
Method
forward
ML/src/python/neuralforge/nn/activations.py:63–65 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
61
super().__init__()
62
63
def
forward(self, x):
64
a, b = x.chunk(2, dim=-1)
65
return
a * F.relu(b)
66
67
class
GEGLU(nn.Module):
68
def
__init__(self):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected