Skip to content

Commit 23164ac

Browse files
Reorder _usmarray import in __init__.py
1 parent 3883a1c commit 23164ac

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

dpctl_ext/tensor/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@
199199
reduce_hypot,
200200
sum,
201201
)
202+
203+
# isort: off
204+
# placed here to avoid circular import
205+
from ._usmarray import DLDeviceType, usm_ndarray
206+
207+
# isort: on
202208
from ._reshape import reshape
203209
from ._search_functions import where
204210
from ._searchsorted import searchsorted
@@ -213,7 +219,6 @@
213219
from ._statistical_functions import mean, std, var
214220
from ._testing import allclose
215221
from ._type_utils import can_cast, finfo, iinfo, isdtype, result_type
216-
from ._usmarray import DLDeviceType, usm_ndarray
217222
from ._utility_functions import all, any, diff
218223

219224
__all__ = [

0 commit comments

Comments
 (0)