-
Notifications
You must be signed in to change notification settings - Fork 30
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
Device-aware can_cast
and result_type
#1488
Conversation
Implementation uses device-specific type promotion rules if input are arrays. For result_type, all arrays must have the same dtype support, or an exception is raused.
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1488/index.html |
Array API standard conformance tests for dpctl=0.15.1dev2=py310h15de555_50 ran successfully. |
can_cast
and result_type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oleksandr-pavlyk
This PR supersedes 1053, correct?
LGTM with the coverage improvement!
Yes, this supersedes gh-1053. |
Changed
dpt.can_cast
anddpt.result_type
to be device-aware if arguments are instances ofusm_ndarray
.