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

Method __init__

model.py:13–18  ·  view source on GitHub ↗
(self, k, hidden_dim=128)

Source from the content-addressed store, hash-verified

11
12class SineEncoding(nn.Module):
13 def __init__(self, k, hidden_dim=128):
14 super(SineEncoding, self).__init__()
15 self.constant = 100
16 self.hidden_dim = hidden_dim
17 self.eig_ws = nn.ModuleList([nn.Linear(hidden_dim + 1, 1) for i in range(k)])
18 self.k = k
19
20 def forward(self, e):
21 # input: [N]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected