...

/

The Discriminator

The Discriminator

Learn about defining the discriminator class for the conditional GAN.

The Discriminator class

Let’s develop this GAN by making changes to our earlier fully connected MNIST GAN.

Please login to launch live app!

We need to update the discriminator to take both image pixel data and the class label information.

The forward function

A simple way to do this is to extend the forward() function to take both the image tensor and a label tensor, and simply join them together. That label tensor is ...