Repository navigation
Fix nonzero result dtype win - #1336
Merged
Merged
Conversation
This returns default index type for give device. Since all devices are 64-bit devices, it always returns "i8".
Closes gh-1335. The issue was caused by nonzero using default integral data type, not default index data type.
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1336/index.html |
Collaborator
|
Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_38 ran successfully. |
Contributor
Author
|
Verified: |
vlad-perevezentsev
approved these changes
Aug 11, 2023
vlad-perevezentsev
left a comment
Collaborator
There was a problem hiding this comment.
LGTM!
thanks @oleksandr-pavlyk
Contributor
Author
|
The array API test failure "array_api_tests/test_special_cases.py:1240: " is marked as flaky by hypothesis, and responsible for passing tests being one fewer than in the main branch. Ready to merge. |
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
1 of 6 tasks
|
Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_44 ran successfully. |
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.
This PR closes gh-1335.
It introduced array API notion of (device-specific) default index data type, and ensure that
dpctl.tensor.nonzerooutput arrays are created of this data type.
Relevant test was adjusted accordingly.