(self, K=256, N=128)
| 21 | |
| 22 | class SingleLinearModule(torch.nn.Module): |
| 23 | def __init__(self, K=256, N=128): |
| 24 | super().__init__() |
| 25 | self.K = K |
| 26 | self.N = N |
| 27 | self.linear = torch.nn.Linear(K, N, bias=False) |
| 28 | |
| 29 | def forward(self, x): |
| 30 | return self.linear(x) |