Commit 195b893
authored
Extend
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._tensor_impl with copy functions (#2774)1 parent b00d064 commit 195b893
File tree
26 files changed
+2351
-86
lines changed- dpctl_ext/tensor
- libtensor/source
- dpnp
- dpnp_algo
- tests
26 files changed
+2351
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
41 | 56 | | |
42 | 57 | | |
| 58 | + | |
| 59 | + | |
43 | 60 | | |
| 61 | + | |
44 | 62 | | |
45 | 63 | | |
46 | 64 | | |
0 commit comments