PyTorchDiscriminator.loss¶ PyTorchDiscriminator.loss(x, y, weights=None)[source]¶ Loss function Paramètres: x (torch.Tensor) – Discriminator output. y (torch.Tensor) – Label of the data point weights (torch.Tensor) – Data weights. Renvoie: Loss w.r.t to the generated data points. Type renvoyé: torch.Tensor