|
27 | 27 | # ***************************************************************************** |
28 | 28 |
|
29 | 29 |
|
30 | | -from dpctl.tensor._search_functions import where |
31 | | - |
32 | | -from dpctl_ext.tensor._copy_utils import ( |
| 30 | +from ._accumulation import cumulative_logsumexp, cumulative_prod, cumulative_sum |
| 31 | +from ._clip import clip |
| 32 | +from ._copy_utils import ( |
33 | 33 | asnumpy, |
34 | 34 | astype, |
35 | 35 | copy, |
36 | 36 | from_numpy, |
37 | 37 | to_numpy, |
38 | 38 | ) |
39 | | -from dpctl_ext.tensor._ctors import ( |
| 39 | +from ._ctors import ( |
40 | 40 | arange, |
41 | 41 | asarray, |
42 | 42 | empty, |
|
53 | 53 | zeros, |
54 | 54 | zeros_like, |
55 | 55 | ) |
56 | | -from dpctl_ext.tensor._indexing_functions import ( |
| 56 | +from ._elementwise_funcs import ( |
| 57 | + abs, |
| 58 | + acos, |
| 59 | + acosh, |
| 60 | + angle, |
| 61 | + asin, |
| 62 | + asinh, |
| 63 | + atan, |
| 64 | + atanh, |
| 65 | + bitwise_invert, |
| 66 | + ceil, |
| 67 | + conj, |
| 68 | +) |
| 69 | +from ._indexing_functions import ( |
57 | 70 | extract, |
58 | 71 | nonzero, |
59 | 72 | place, |
|
62 | 75 | take, |
63 | 76 | take_along_axis, |
64 | 77 | ) |
65 | | -from dpctl_ext.tensor._manipulation_functions import ( |
| 78 | +from ._manipulation_functions import ( |
66 | 79 | broadcast_arrays, |
67 | 80 | broadcast_to, |
68 | 81 | concat, |
|
78 | 91 | tile, |
79 | 92 | unstack, |
80 | 93 | ) |
81 | | -from dpctl_ext.tensor._reshape import reshape |
82 | | -from dpctl_ext.tensor._utility_functions import all, any, diff |
83 | | - |
84 | | -from ._accumulation import cumulative_logsumexp, cumulative_prod, cumulative_sum |
85 | | -from ._clip import clip |
86 | | -from ._elementwise_funcs import ( |
87 | | - abs, |
88 | | - acos, |
89 | | - acosh, |
90 | | - angle, |
91 | | - asin, |
92 | | - asinh, |
93 | | - atan, |
94 | | - atanh, |
95 | | - bitwise_invert, |
96 | | - ceil, |
97 | | - conj, |
98 | | -) |
99 | 94 | from ._reduction import ( |
100 | 95 | argmax, |
101 | 96 | argmin, |
|
107 | 102 | reduce_hypot, |
108 | 103 | sum, |
109 | 104 | ) |
| 105 | +from ._reshape import reshape |
| 106 | +from ._search_functions import where |
110 | 107 | from ._searchsorted import searchsorted |
111 | 108 | from ._set_functions import ( |
112 | 109 | isin, |
|
117 | 114 | ) |
118 | 115 | from ._sorting import argsort, sort, top_k |
119 | 116 | from ._type_utils import can_cast, finfo, iinfo, isdtype, result_type |
| 117 | +from ._utility_functions import all, any, diff |
120 | 118 |
|
121 | 119 | __all__ = [ |
122 | 120 | "abs", |
|
0 commit comments