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