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

Make broadcast_axes inferrable even if axes are of different types #30074

Merged
merged 1 commit into from
Nov 20, 2018

Conversation

timholy
Copy link
Sponsor Member

@timholy timholy commented Nov 18, 2018

This was originally discovered as JuliaArrays/StaticArrays.jl#546 but there's a non-static fix needed too. This uses OneTo and UnitRange as the default fallbacks.

@mbauman mbauman merged commit 6e1464b into master Nov 20, 2018
@KristofferC
Copy link
Sponsor Member

Backport?

@fredrikekre fredrikekre deleted the teh/bcast_axes_infer branch November 20, 2018 16:58
@timholy
Copy link
Sponsor Member Author

timholy commented Nov 20, 2018

Yes, I think so.

timholy added a commit that referenced this pull request Nov 27, 2018
#30074 used the wrong notion of consistency since `OneTo(1)` is
consistent (wrt broadcasting) with any range, but `OneTo` cannot
handle `Slice(-1:1)`.
@KristofferC KristofferC mentioned this pull request Nov 28, 2018
61 tasks
@KristofferC KristofferC added performance Must go faster and removed backport pending 1.0 labels Dec 12, 2018
KristofferC pushed a commit that referenced this pull request Dec 30, 2018
#30074 used the wrong notion of consistency since `OneTo(1)` is
consistent (wrt broadcasting) with any range, but `OneTo` cannot
handle `Slice(-1:1)`.

(cherry picked from commit 1884cb4)
KristofferC pushed a commit that referenced this pull request Feb 4, 2019
#30074 used the wrong notion of consistency since `OneTo(1)` is
consistent (wrt broadcasting) with any range, but `OneTo` cannot
handle `Slice(-1:1)`.

(cherry picked from commit 1884cb4)
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
#30074 used the wrong notion of consistency since `OneTo(1)` is
consistent (wrt broadcasting) with any range, but `OneTo` cannot
handle `Slice(-1:1)`.

(cherry picked from commit 1884cb4)
KristofferC pushed a commit that referenced this pull request Aug 26, 2019
#30074 used the wrong notion of consistency since `OneTo(1)` is
consistent (wrt broadcasting) with any range, but `OneTo` cannot
handle `Slice(-1:1)`.

(cherry picked from commit 1884cb4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants