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

Method __init__

model.py:37–41  ·  view source on GitHub ↗
(self, input_dim, hidden_dim, output_dim)

Source from the content-addressed store, hash-verified

35class FeedForwardNetwork(nn.Module):
36
37 def __init__(self, input_dim, hidden_dim, output_dim):
38 super(FeedForwardNetwork, self).__init__()
39 self.layer1 = nn.Linear(input_dim, hidden_dim)
40 self.gelu = nn.GELU()
41 self.layer2 = nn.Linear(hidden_dim, output_dim)
42
43 def forward(self, x):
44 x = self.layer1(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected