We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wgan-gp/gan_language.py
Line 159 in ae47a18
Right before this line, it should be added "gradients = gradients.view(BATCH_SIZE, -1)"?
"gradients = gradients.view(BATCH_SIZE, -1)"
The text was updated successfully, but these errors were encountered:
It's OK in gan_mnist.py because real_data and fake_data has shape [BATCH_SZIE, OUTPUT_DIM], and Discriminator reshapes input at first.
real_data
fake_data
[BATCH_SZIE, OUTPUT_DIM]
Discriminator
wgan-gp/gan_mnist.py
Line 100 in ae47a18
But, in gan_cifar10.py, Discriminator requires input tensor to have rank 4. It means gradients also has rank 4.
gradients
wgan-gp/gan_cifar10.py
Lines 89 to 93 in ae47a18
gradient_penalty
In original(?) implementation Discriminator requires rank 2 tensor. https://github.com/igul222/improved_wgan_training/blob/master/gan_cifar.py#L71
In gan_language.py, original Discriminator takes rank 3 tensor. But norm is computed along two axes. https://github.com/igul222/improved_wgan_training/blob/master/gan_language.py#L107
Sorry, something went wrong.
No branches or pull requests
wgan-gp/gan_language.py
Line 159 in ae47a18
Right before this line, it should be added
"gradients = gradients.view(BATCH_SIZE, -1)"
?The text was updated successfully, but these errors were encountered: