Skip to content
New issue

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

alpha for each example in WGAN_GP #5

Open
jnjaby opened this issue Jan 25, 2018 · 1 comment
Open

alpha for each example in WGAN_GP #5

jnjaby opened this issue Jan 25, 2018 · 1 comment

Comments

@jnjaby
Copy link

jnjaby commented Jan 25, 2018

In the WGAN_GP paper ArXiv, alpha is sampled for each example. However, it's sampled element-wise referred to WGAN_GP.

Suppose we have a tensor of the size (64, 3, 15, 15), I thought the correct way to sample is alpha = torch.rand(x_.size()[0]), which returns a (64, ) tensor.

Is there something I miss or I misunderstand the paper?

@JJZHK
Copy link

JJZHK commented May 17, 2018

it should be lpha = torch.rand(x_.size()[0], 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants