Uh oh!
There was an error while loading. Please reload this page.
Move tensor tests from dpctl - #2817
Merged
Merged
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Base automatically changed from
move_dpctl_ext_to_dpnp_tensor to
include-dpctl-tensorApril 8, 2026 14:57
vlad-perevezentsevforce-pushed
the
move_tensor_tests
branch
from
April 9, 2026 15:25
ad68e19 to
9b125c3CompareUh oh!
There was an error while loading. Please reload this page.
antonwolfy
approved these changes
Apr 10, 2026
antonwolfy
left a comment
Contributor
There was a problem hiding this comment.
Thank you @vlad-perevezentsev, no more comments from me
vlad-perevezentsev
merged commit Apr 10, 2026
e1aad07
into
include-dpctl-tensor
20 of 36 checks passed
Uh oh!
There was an error while loading. Please reload this page.
7 tasks
vlad-perevezentsev added a commit
that referenced
this pull request
Apr 15, 2026
…2851) This PR proposes device-aware output dtype resolution for `dpnp.tensor.round()` with `boolean` input to handle devices that do not support `float16` Boolean support for round() was originally added in #2817 [6f5a792](6f5a792) to match NumPy behavior where numpy.round(bool) returns float16 rather than an integral type like int8. However on devices without fp16 support, returning float16 is not viable. The bool type mapping was removed from the round kernel and an acceptance function `_acceptance_fn_round` was added to ensure the fallback in `_find_buf_dtype` prefers floating-point output over integral types for boolean input Result : fp16 devices: round(bool) -> float16 non-fp16 devices: round(bool) -> float32
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 freeto 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 moves all tensor-related tests to
dpnp/tests/tensoras part of the ongoing migration of tensor functionality fromdpctltodpnp.tensorKey changes:
In a follow-up PR: