HI Ptrblck,
I chnge my loss unction from binary cross entropy to the torch.nn.CrossEntropyLoss
but it givee me this error "RuntimeError: bool value of Tensor with more than one value is ambiguous
"
The code is "
  output = netD(real_cpu).view(-1)
 label = torch.full((b_size,), real_label, device=device)
  label=torch.mul(label,0.9)      
  errD_real = criterion(output, label)