MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nn/activations.py:34–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32
33class HardSigmoid(nn.Module):
34 def __init__(self):
35 super().__init__()
36
37 def forward(self, x):
38 return F.relu6(x + 3.0) / 6.0

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected