def sample(self, z, y):
        """
        Samples from the Decoder to generate an x.

        :param z: latent normal variable
        :param y: label (one-hot encoded)
        :return: x
        """
        y = y.float()
        x = self.decoder(torch.cat((z, y), dim=1))
        return x

        Samples from the Decoder to generate an x.

        :param z: latent normal variable
        :param y: label (one-hot encoded)
        :return: x
        
adbench/baseline/DeepSAD/src/networks/dgm.py