def __call__(self, x, t, train=True): y = self.predictor(x, train) self.loss = F.softmax_cross_entropy(y, t) self.acc = F.accuracy(y, t) return self.loss