-
Notifications
You must be signed in to change notification settings - Fork 85
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 up indexing of summed_mask in shapesys, staterror #333
Conversation
1 similar comment
@matthewfeickert done ✅ |
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!
Hi, the -1 was the right index in order to pick up the default value which was appended at the end of the pars in apply, do i‘m not sure this is the right change (Sorry, On phone) |
This broke in tensorflow. |
We also additionally changed shapesys in |
TF can‘t use negative indices? |
Nope. It's |
Yeah then I guess it should be len-1 |
Description
The main difficulty with shapesys/staterror as it affects multiple (non-consecutive) bins is the way we do masking. For situations where we need to figure out whether to enable the mask or not, it was filling in
-1
when the parameter index was0
which is not good. Additionally,tensorflow.gather()
is not happy with-1
.Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: