MCPcopy Create free account
hub / github.com/GGA23/GrokFormer / forward

Method forward

model.py:43–47  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

41 self.layer2 = nn.Linear(hidden_dim, output_dim)
42
43 def forward(self, x):
44 x = self.layer1(x)
45 x = self.gelu(x)
46 x = self.layer2(x)
47 return x
48
49
50class MultiHeadAttention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected