PyTorchDiscriminator.loss¶ PyTorchDiscriminator.loss(x, y, weights=None)[fuente]¶ Loss function Parámetros: x (torch.Tensor) – Discriminator output. y (torch.Tensor) – Label of the data point weights (torch.Tensor) – Data weights. Devuelve: Loss w.r.t to the generated data points. Tipo del valor devuelto: torch.Tensor