def forward(self, input, target): return F.binary_cross_entropy(torch.sigmoid(input), target, self.weight, self.size_average)