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

Method __init__

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

Source from the content-addressed store, hash-verified

25
26class HardSwish(nn.Module):
27 def __init__(self):
28 super().__init__()
29
30 def forward(self, x):
31 return x * F.hardtanh(x + 3, 0.0, 6.0) / 6.0

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected