-
Notifications
You must be signed in to change notification settings - Fork 725
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 - sample type inconsistency in (Multi)Categorical Probability Distribution #588
Fix - sample type inconsistency in (Multi)Categorical Probability Distribution #588
Conversation
Thanks for the PR! However this could have been discussed further in the issue before opening a PR. Namely: I do not think the probability distributions should return And more importantly, Gym spaces use |
@Miffyli
Practically, I think it would be better to use tf.int32, but if other libraries are going to int64, then some parameter could help me (who stick to int32 for service issue). |
I would switch to using Any comments on this? Something I am missing? |
I don't think so, or at least, I'm not aware. Yes, I'm for the consistency ;) |
Well, you can do the changes on that PR, no need to close it. |
…babilityDistribution, MultiCategoricalProbabilityDistribution to tf.int64)
@Miffyli |
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, thanks
Description
Motivation and Context
closes [Bug] sampling from CategoricalProbabilityDistribution should return tf.int32 #589
Types of changes
Checklist:
pytest
andpytype
both pass.