def loss_sigmoid_cross_entropy_with_logits(x, t): return F.average(x - x*t + F.softplus(-x))# / x.data.shape[0]