(self, h_dim=1024, n_layers=2)
| 18 | class NNModel(nn.Module): |
| 19 | |
| 20 | def __init__(self, h_dim=1024, n_layers=2): |
| 21 | super(NNModel, self).__init__() |
| 22 | self.layers = nn.ModuleList([nn.Linear(h_dim, h_dim) for i in range(n_layers)]) |
| 23 | self.cross_entropy_loss = nn.CrossEntropyLoss() |
| 24 | |
| 25 | def forward(self, x, y): |
| 26 | for layer in self.layers: |
nothing calls this directly
no outgoing calls
no test coverage detected