Skip to content

Commit e917751

Browse files
committed
Remove unused import of dpctl in _set_functions.py
1 parent 2b655cf commit e917751

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dpctl/tensor/_set_functions.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
from typing import NamedTuple
1818

19-
import dpctl
2019
import dpctl.tensor as dpt
2120
import dpctl.utils as du
2221

@@ -677,19 +676,19 @@ def isin(x, test_elements, /, *, invert=False):
677676
exec_q = q1
678677
res_usm_type = x_usm_type
679678
else:
680-
exec_q = dpctl.utils.get_execution_queue((q1, q2))
679+
exec_q = du.get_execution_queue((q1, q2))
681680
if exec_q is None:
682681
raise du.ExecutionPlacementError(
683682
"Execution placement can not be unambiguously inferred "
684683
"from input arguments."
685684
)
686-
res_usm_type = dpctl.utils.get_coerced_usm_type(
685+
res_usm_type = du.get_coerced_usm_type(
687686
(
688687
x_usm_type,
689688
test_usm_type,
690689
)
691690
)
692-
dpctl.utils.validate_usm_type(res_usm_type, allow_none=False)
691+
du.validate_usm_type(res_usm_type, allow_none=False)
693692
sycl_dev = exec_q.sycl_device
694693

695694
x_dt = _get_dtype(x, sycl_dev)

0 commit comments

Comments
 (0)