-
Notifications
You must be signed in to change notification settings - Fork 26.3k
support broadcasting in _kl_categorical_categorical #10533
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
support broadcasting in _kl_categorical_categorical #10533
Conversation
|
Could you please add a test in |
|
I added a basic test for it |
test/test_distributions.py
Outdated
| (binomial30, binomial30), | ||
| (binomial_vectorized_count, binomial_vectorized_count), | ||
| (categorical, categorical), | ||
| (Categorical(torch.ones(1, 10)), Categorical(torch.ones(3, 10))), |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
vishwakftw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you for fixing this.
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
soumith is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Support broadcasting in _kl_categorical_categorical
this makes it possible to do: