Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ __init__
Method
__init__
ML/src/python/neuralforge/nn/activations.py:6–7 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
4
5
class
GELU(nn.Module):
6
def
__init__(self):
7
super().__init__()
8
9
def
forward(self, x):
10
return
0.5 * x * (1.0 + torch.tanh(0.7978845608 * (x + 0.044715 * torch.pow(x, 3))))
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected