Write a GAN in PyTorch

Hardauto-graded

Implement a generative adversarial network with competing generator and discriminator networks trained via minimax loss.

Solve it

Check your answer

The grader verifies properties of your implementation, so a correct solution written differently from ours still passes.

pip install torchleet

from torchleet import check
check("gan", Generator, Discriminator)