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

Method forward

ML/src/python/neuralforge/nn/activations.py:23–24  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

21 super().__init__()
22
23 def forward(self, x):
24 return x * torch.tanh(F.softplus(x))
25
26class HardSwish(nn.Module):
27 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected