Skip to content

Commit 867fc26

Browse files
committed
fix bug
1 parent 81fbd28 commit 867fc26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SP21/GAN/vanilla_gan.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
" ### Train Generator ###\n",
149149
" generator_optim.zero_grad()\n",
150150
" \n",
151-
" latent_input = torch.randn((batch_size, 1, *latent_shape)).to(device)\n",
151+
" latent_input = torch.randn((len(real_images), 1, *latent_shape)).to(device)\n",
152152
" fake_images = generator(latent_input)\n",
153153
"\n",
154154
" fake_res = discriminator(fake_images)\n",

0 commit comments

Comments
 (0)