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

Bernoulli Variables #7

Open
josianerodrigues opened this issue Oct 25, 2019 · 3 comments
Open

Bernoulli Variables #7

josianerodrigues opened this issue Oct 25, 2019 · 3 comments

Comments

@josianerodrigues
Copy link

Hi @YongfeiYan, thanks for sharing your project with us.

I would like to know how do I modify the implementation to use Bernoulli variables. I need the network to generate codes consisting of 0s and 1s.

Thanks.

@YongfeiYan
Copy link
Owner

YongfeiYan commented Oct 26, 2019

Just set categorical_dim=2, and use hard=True in gumbel_softmax function.

@josianerodrigues
Copy link
Author

Thank you :)

@josianerodrigues
Copy link
Author

Hi @YongfeiYan,
I have one more question. How to generate new data from the trained model? I need to get the representation for the test images.

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