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