Method
__init__
(self, in_dim=22, out_dim=1, innter_dim=96, depth=5)
Source from the content-addressed store, hash-verified
| 334 | |
| 335 | class MLP(nn.Module): |
| 336 | def __init__(self, in_dim=22, out_dim=1, innter_dim=96, depth=5): |
| 337 | super().__init__() |
| 338 | self.FC1 = nn.Linear(in_dim, innter_dim) |
| 339 | self.FC_out = nn.Linear(innter_dim, out_dim) |
| 340 | self.relu = torch.nn.LeakyReLU(0.2) |
| 341 | self.FC_inter = nn.ModuleList( |
| 342 | [nn.Linear(innter_dim, innter_dim) for i in range(depth)]) |
| 343 | |
| 344 | def forward(self, x): |
| 345 | x = self.FC1(x) |
Tested by
no test coverage detected