|
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, |
|
112 | 82 | negative, |
113 | 83 | positive, |
114 | 84 | ) |
| 85 | +from ._indexing_functions import ( |
| 86 | + extract, |
| 87 | + nonzero, |
| 88 | + place, |
| 89 | + put, |
| 90 | + put_along_axis, |
| 91 | + take, |
| 92 | + take_along_axis, |
| 93 | +) |
| 94 | +from ._manipulation_functions import ( |
| 95 | + broadcast_arrays, |
| 96 | + broadcast_to, |
| 97 | + concat, |
| 98 | + expand_dims, |
| 99 | + flip, |
| 100 | + moveaxis, |
| 101 | + permute_dims, |
| 102 | + repeat, |
| 103 | + roll, |
| 104 | + squeeze, |
| 105 | + stack, |
| 106 | + swapaxes, |
| 107 | + tile, |
| 108 | + unstack, |
| 109 | +) |
115 | 110 | from ._reduction import ( |
116 | 111 | argmax, |
117 | 112 | argmin, |
|
123 | 118 | reduce_hypot, |
124 | 119 | sum, |
125 | 120 | ) |
| 121 | +from ._reshape import reshape |
| 122 | +from ._search_functions import where |
126 | 123 | from ._searchsorted import searchsorted |
127 | 124 | from ._set_functions import ( |
128 | 125 | isin, |
|
133 | 130 | ) |
134 | 131 | from ._sorting import argsort, sort, top_k |
135 | 132 | from ._type_utils import can_cast, finfo, iinfo, isdtype, result_type |
| 133 | +from ._utility_functions import all, any, diff |
136 | 134 |
|
137 | 135 | __all__ = [ |
138 | 136 | "abs", |
|
0 commit comments