def getLossDistill(self,x,t): _t = chainer.Variable(t.data, volatile='off') self.loss = F.mean_squared_error(x, _t) return self.loss