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

Method __init__

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

Source from the content-addressed store, hash-verified

11
12class Swish(nn.Module):
13 def __init__(self):
14 super().__init__()
15
16 def forward(self, x):
17 return x * torch.sigmoid(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected