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