Skip to content

feat: add gumbel_softmax#14

Open
OrangeX4 wants to merge 2 commits intomasterfrom
gumbel_softmax
Open

feat: add gumbel_softmax#14
OrangeX4 wants to merge 2 commits intomasterfrom
gumbel_softmax

Conversation

@OrangeX4
Copy link
Collaborator

@OrangeX4 OrangeX4 commented Sep 4, 2024

Code of RelaxedOneHotCategorical came from:

from torch.distributions import RelaxedOneHotCategorical

We inherit OneHotCategorical to use dist.kl_divergence(), and the torch.distributions.RelaxedOneHotCategorical does not implement dist.kl_divergence().

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

Successfully merging this pull request may close these issues.

1 participant