(self, inputs)
| 40 | self.softmax_cross_entropy = layer.SoftMaxCrossEntropy() |
| 41 | |
| 42 | def forward(self, inputs): |
| 43 | y = self.linear1(inputs) |
| 44 | y = self.relu(y) |
| 45 | y = self.linear2(y) |
| 46 | return y |
| 47 | |
| 48 | def train_one_batch(self, x, y, dist_option, spars): |
| 49 | out = self.forward(x) |