|
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._manipulation_functions import ( |
66 | | - broadcast_arrays, |
67 | | - broadcast_to, |
68 | | - concat, |
69 | | - expand_dims, |
70 | | - flip, |
71 | | - moveaxis, |
72 | | - permute_dims, |
73 | | - repeat, |
74 | | - roll, |
75 | | - squeeze, |
76 | | - stack, |
77 | | - swapaxes, |
78 | | - tile, |
79 | | - unstack, |
80 | | -) |
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 | 56 | from ._elementwise_funcs import ( |
87 | 57 | abs, |
88 | 58 | acos, |
|
128 | 98 | tanh, |
129 | 99 | trunc, |
130 | 100 | ) |
| 101 | +from ._indexing_functions import ( |
| 102 | + extract, |
| 103 | + nonzero, |
| 104 | + place, |
| 105 | + put, |
| 106 | + put_along_axis, |
| 107 | + take, |
| 108 | + take_along_axis, |
| 109 | +) |
| 110 | +from ._manipulation_functions import ( |
| 111 | + broadcast_arrays, |
| 112 | + broadcast_to, |
| 113 | + concat, |
| 114 | + expand_dims, |
| 115 | + flip, |
| 116 | + moveaxis, |
| 117 | + permute_dims, |
| 118 | + repeat, |
| 119 | + roll, |
| 120 | + squeeze, |
| 121 | + stack, |
| 122 | + swapaxes, |
| 123 | + tile, |
| 124 | + unstack, |
| 125 | +) |
131 | 126 | from ._reduction import ( |
132 | 127 | argmax, |
133 | 128 | argmin, |
|
139 | 134 | reduce_hypot, |
140 | 135 | sum, |
141 | 136 | ) |
| 137 | +from ._reshape import reshape |
| 138 | +from ._search_functions import where |
142 | 139 | from ._searchsorted import searchsorted |
143 | 140 | from ._set_functions import ( |
144 | 141 | isin, |
|
149 | 146 | ) |
150 | 147 | from ._sorting import argsort, sort, top_k |
151 | 148 | from ._type_utils import can_cast, finfo, iinfo, isdtype, result_type |
| 149 | +from ._utility_functions import all, any, diff |
152 | 150 |
|
153 | 151 | __all__ = [ |
154 | 152 | "abs", |
|
0 commit comments