|
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 ( |
57 | | - extract, |
58 | | - nonzero, |
59 | | - place, |
60 | | - put, |
61 | | - put_along_axis, |
62 | | - take, |
63 | | - take_along_axis, |
64 | | -) |
65 | | -from dpctl_ext.tensor._linear_algebra_functions import ( |
66 | | - matmul, |
67 | | - matrix_transpose, |
68 | | - tensordot, |
69 | | - vecdot, |
70 | | -) |
71 | | -from dpctl_ext.tensor._manipulation_functions import ( |
72 | | - broadcast_arrays, |
73 | | - broadcast_to, |
74 | | - concat, |
75 | | - expand_dims, |
76 | | - flip, |
77 | | - moveaxis, |
78 | | - permute_dims, |
79 | | - repeat, |
80 | | - roll, |
81 | | - squeeze, |
82 | | - stack, |
83 | | - swapaxes, |
84 | | - tile, |
85 | | - unstack, |
86 | | -) |
87 | | -from dpctl_ext.tensor._reshape import reshape |
88 | | -from dpctl_ext.tensor._utility_functions import all, any, diff |
89 | | - |
90 | | -from ._accumulation import cumulative_logsumexp, cumulative_prod, cumulative_sum |
91 | | -from ._clip import clip |
92 | 56 | from ._elementwise_funcs import ( |
93 | 57 | abs, |
94 | 58 | acos, |
|
141 | 105 | tanh, |
142 | 106 | trunc, |
143 | 107 | ) |
| 108 | +from ._indexing_functions import ( |
| 109 | + extract, |
| 110 | + nonzero, |
| 111 | + place, |
| 112 | + put, |
| 113 | + put_along_axis, |
| 114 | + take, |
| 115 | + take_along_axis, |
| 116 | +) |
| 117 | +from ._linear_algebra_functions import ( |
| 118 | + matmul, |
| 119 | + matrix_transpose, |
| 120 | + tensordot, |
| 121 | + vecdot, |
| 122 | +) |
| 123 | +from ._manipulation_functions import ( |
| 124 | + broadcast_arrays, |
| 125 | + broadcast_to, |
| 126 | + concat, |
| 127 | + expand_dims, |
| 128 | + flip, |
| 129 | + moveaxis, |
| 130 | + permute_dims, |
| 131 | + repeat, |
| 132 | + roll, |
| 133 | + squeeze, |
| 134 | + stack, |
| 135 | + swapaxes, |
| 136 | + tile, |
| 137 | + unstack, |
| 138 | +) |
144 | 139 | from ._reduction import ( |
145 | 140 | argmax, |
146 | 141 | argmin, |
|
152 | 147 | reduce_hypot, |
153 | 148 | sum, |
154 | 149 | ) |
| 150 | +from ._reshape import reshape |
| 151 | +from ._search_functions import where |
155 | 152 | from ._searchsorted import searchsorted |
156 | 153 | from ._set_functions import ( |
157 | 154 | isin, |
|
162 | 159 | ) |
163 | 160 | from ._sorting import argsort, sort, top_k |
164 | 161 | from ._type_utils import can_cast, finfo, iinfo, isdtype, result_type |
| 162 | +from ._utility_functions import all, any, diff |
165 | 163 |
|
166 | 164 | __all__ = [ |
167 | 165 | "abs", |
|
0 commit comments