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:30–31 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
28
super().__init__()
29
30
def
forward(self, x):
31
return
x * F.hardtanh(x + 3, 0.0, 6.0) / 6.0
32
33
class
HardSigmoid(nn.Module):
34
def
__init__(self):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected