def __call__(self, x, t):
    h = self.forward(x)
    loss = F.softmax_cross_entropy(h, t, class_weight=self._class_weight)
    chainer.report({'loss': loss, 'accuracy': F.accuracy(h, t)}, self)
    return loss
def __call__(self, x, t):
    h = self.forward(x)
    loss = F.softmax_cross_entropy(h, t, class_weight=self._class_weight)
    chainer.report({'loss': loss, 'accuracy': F.accuracy(h, t)}, self)
    return loss