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

Method __init__

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

Source from the content-addressed store, hash-verified

66
67class GEGLU(nn.Module):
68 def __init__(self):
69 super().__init__()
70 self.gelu = GELU()
71
72 def forward(self, x):
73 a, b = x.chunk(2, dim=-1)

Callers

nothing calls this directly

Calls 2

GELUClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected