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

Gumbel trick error #1

Open
maestrojeong opened this issue Nov 2, 2018 · 1 comment
Open

Gumbel trick error #1

maestrojeong opened this issue Nov 2, 2018 · 1 comment

Comments

@maestrojeong
Copy link

https://github.com/vithursant/VAE-Gumbel-Softmax/blob/master/vae_gumbel_softmax.py#L55
You use the logits, however we have to use log(logits) to perform gumbel max trick as stated in https://timvieira.github.io/blog/post/2014/07/31/gumbel-max-trick/

@j314erre
Copy link

gumbel softmax((log(pi)+g)/tau), where pi are class probabilities, therefore softmax((logits + g)/tau) will suffice.
https://arxiv.org/pdf/1611.01144

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