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

Method forward

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

Source from the content-addressed store, hash-verified

70 self.gelu = GELU()
71
72 def forward(self, x):
73 a, b = x.chunk(2, dim=-1)
74 return a * self.gelu(b)
75
76class SiLU(nn.Module):
77 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected