Skip to content

Extend ._tensor_impl with copy functions #2774

Merged
vlad-perevezentsev merged 55 commits intoinclude-dpctl-tensorfrom
move_tensor_impl_copy
Mar 3, 2026
Merged

Extend ._tensor_impl with copy functions #2774
vlad-perevezentsev merged 55 commits intoinclude-dpctl-tensorfrom
move_tensor_impl_copy

Conversation

@vlad-perevezentsev
Copy link
Contributor

This PR extends _tensor_impl in dpctl_ext.tensor with the copy functions (_copy_usm_ndarray_for_reshape , _copy_numpy_ndarray_into_usm_ndarray. _copy_usm_ndarray_for_roll_1d, _copy_usm_ndarray_for_roll_nd)

It also adds asnumpy(), astype(), copy(), from_numpy(), to_numpy(), roll(), and reshape() to dpctl_ext.tensor and updates the corresponding dpnp functions to use these implementations internally

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2026

Array API standard conformance tests for dpnp=0.20.0dev3=py313h509198e_64 ran successfully.
Passed: 1356
Failed: 1
Skipped: 16

@vlad-perevezentsev vlad-perevezentsev marked this pull request as ready for review February 19, 2026 12:28
@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

View rendered docs @ https://intelpython.github.io/dpnp/index.html

Base automatically changed from move_tensor_impl_ext_part_2 to include-dpctl-tensor February 24, 2026 23:27
Copy link
Collaborator

@ndgrigorian ndgrigorian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no changes jump out to me

LGTM

@vlad-perevezentsev vlad-perevezentsev merged commit 195b893 into include-dpctl-tensor Mar 3, 2026
69 of 81 checks passed
@vlad-perevezentsev vlad-perevezentsev deleted the move_tensor_impl_copy branch March 3, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants