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

Method __init__

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

Source from the content-addressed store, hash-verified

18
19class Mish(nn.Module):
20 def __init__(self):
21 super().__init__()
22
23 def forward(self, x):
24 return x * torch.tanh(F.softplus(x))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected