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

Method forward

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

Source from the content-addressed store, hash-verified

53 self.dim = dim
54
55 def forward(self, x):
56 a, b = x.chunk(2, dim=self.dim)
57 return a * torch.sigmoid(b)
58
59class ReGLU(nn.Module):
60 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected