Repository navigation
Send unsupported inputs to the array path and widen the numba parity tests - #177
Merged
Merged
Conversation
…s, guard every w_func output and accept np.memmap
…e mixed-precision tolerances
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.
Part of the Phase 4 stack. Before numba becomes the default for numpy inputs, every input the array path accepts must either give the same result on the gufunc path or go to the array path. This adds that guard and closes the parity gaps found in the coverage review.
What changed
__array__, complex, object, longdouble and float16 inputs take the array path, also with backend="numba". Extra arrays such as weights, alpha and the outputs of w_func go through the same check.Notes
Two unsigned-integer cases are strict xfails for #176, which is a bug on the array path. The guard costs about 1 us per call.
This change was developed in tandem with AI coding agents.