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:88–89 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
86
self.alpha = alpha
87
88
def
forward(self, x):
89
return
torch.where(x > 0, x, self.alpha * (torch.exp(x) - 1))
90
91
class
SELU(nn.Module):
92
def
__init__(self):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected