Repository navigation
Conversation
Signed-off-by: Iason Krommydas <iason.krom@gmail.com>
Member
|
Two PRs addressing ufunc exceptions within 5 minutes: #33576 |
Member
Author
|
It was Nathan dm'ing me about the PR he was about to open that prompted me haha. I had this on my fork for a few days. |
jorenham
reviewed
Dec 3, 2026
jorenham
left a comment
Member
There was a problem hiding this comment.
Stub changes look good (that Final is a nice touch 👌)
Signed-off-by: Iason Krommydas <iason.krom@gmail.com>
Signed-off-by: Iason Krommydas <iason.krom@gmail.com>
jorenham
approved these changes
Dec 3, 2026
Signed-off-by: Iason Krommydas <iason.krom@gmail.com>
Signed-off-by: Iason Krommydas <iason.krom@gmail.com>
Member
Author
|
Pushed a release note. |
ngoldbaum
reviewed
Dec 4, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR summary
Implements a specific exception type that we call _UFuncNoReductionLoopError and is a subclass of _UFuncNoLoopError (which all the way up is a subclass of TypeError) to make the error message of when no reduction loop of this specific type.
The idea is that if a ufunc has forwards loops and solves for the dtypes but no matching reduction loop, we get back a specific exception type that we can handle in a specific way. I found this while adding minimummaximum (+ reduction) loops to quaddtype.
AI Disclosure
No AI