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

Fix torch backend random.categorical #389

Merged
merged 1 commit into from
Jun 22, 2023
Merged

Conversation

mattdangerw
Copy link
Member

Confusingly, torch.multinomial takes in unnormalized probabilities (they are not even asserted to be positive), rather then logits. Hell if you can tell that from the docs.

Confusingly, torch.multinomial takes in unnormalized probabilities (they
are not even asserted to be positive), rather then logits. Hell if you
can tell that from the docs.
Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix!

@fchollet fchollet merged commit 0946353 into main Jun 22, 2023
5 checks passed
@fchollet fchollet deleted the categorical-torch-fix branch July 17, 2023 18:34
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.

2 participants