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 #33020, check axes for broadcasted assignment from tuples #33080

Merged
merged 2 commits into from
Aug 27, 2019
Merged

Conversation

mbauman
Copy link
Member

@mbauman mbauman commented Aug 26, 2019

We avoid computing axes for tuples -- which is a valuable optimization -- but when we explicitly construct a tuple broadcast with axes pre-set (for, e.g., broadcasted assignment), we need to check that those axes are compatible with the ones inside the broadcasted expression before accepting them.

This should cleanly backport into all releases (I only checked against 1.0 and master, but if those two work, then I'd imagine 1.2 and 1.3 to work as well).

We avoid computing axes for tuples -- which is a valuable optimization -- but when we explicitly construct a tuple broadcast with axes pre-set (for, e.g., broadcasted assignment), we need to check that those axes are compatible with the ones inside the broadcasted expression before accepting them.
@mbauman mbauman added broadcast Applying a function over a collection backport 1.0 labels Aug 26, 2019
@mbauman mbauman added this to the 1.3 milestone Aug 26, 2019
@KristofferC KristofferC mentioned this pull request Aug 26, 2019
36 tasks
@mbauman
Copy link
Member Author

mbauman commented Aug 27, 2019

Failures seem unrelated — Windows was FileWatching and Mac failed (twice) to connect to GitHub.

@mbauman mbauman merged commit b5c4e63 into master Aug 27, 2019
@delete-merged-branch delete-merged-branch bot deleted the mb/33020 branch August 27, 2019 16:06
JeffBezanson pushed a commit that referenced this pull request Aug 30, 2019
We avoid computing axes for tuples -- which is a valuable optimization -- but when we explicitly construct a tuple broadcast with axes pre-set (for, e.g., broadcasted assignment), we need to check that those axes are compatible with the ones inside the broadcasted expression before accepting them.
(cherry picked from commit b5c4e63)
KristofferC pushed a commit that referenced this pull request Dec 3, 2019
We avoid computing axes for tuples -- which is a valuable optimization -- but when we explicitly construct a tuple broadcast with axes pre-set (for, e.g., broadcasted assignment), we need to check that those axes are compatible with the ones inside the broadcasted expression before accepting them.

(cherry picked from commit b5c4e63)
@KristofferC KristofferC mentioned this pull request Dec 3, 2019
56 tasks
KristofferC pushed a commit that referenced this pull request Feb 20, 2020
We avoid computing axes for tuples -- which is a valuable optimization -- but when we explicitly construct a tuple broadcast with axes pre-set (for, e.g., broadcasted assignment), we need to check that those axes are compatible with the ones inside the broadcasted expression before accepting them.

(cherry picked from commit b5c4e63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broadcast Applying a function over a collection
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants