(self, output_real, output_fake)
return D_x, D_Gz
r"""
        Computes probabilities from real/fake images logits.

        Args:
            output_real (Tensor): A batch of output logits of shape (N, 1) from real images.
            output_fake (Tensor): A batch of output logits of shape (N, 1) from fake images.

        Returns:
            tuple: Average probabilities of real/fake image considered as real for the batch.
r"""
        Computes probabilities from real/fake images logits.
r Computes probabilities from real / fake images logits .
def compute_probs(self, output_real, output_fake):
        r"""
        Computes probabilities from real/fake images logits.

        Args:
            output_real (Tensor): A batch of output logits of shape (N, 1) from real images.
            output_fake (Tensor): A batch of output logits of shape (N, 1) from fake images.

        Returns:
            tuple: Average probabilities of real/fake image considered as real for the batch.
        """
        D_x = F.sigmoid(output_real).mean()
        D_Gz = F.sigmoid(output_fake).mean()

        return D_x, D_Gz
def compute_probs ( self , output_real , output_fake ) : D_x = F . sigmoid ( output_real ) . mean ( ) D_Gz = F . sigmoid ( output_fake ) . mean ( ) return D_x , D_Gz