Skip to content

Commit 0ca4e10

Browse files
committed
Use utility function from dpctl.tensor._type_utils
1 parent 42f2644 commit 0ca4e10

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040

4141
import dpctl.tensor as dpt
42+
import dpctl.tensor._type_utils as dtu
4243
import numpy
4344
from numpy.core.numeric import (
4445
normalize_axis_index,
@@ -2905,8 +2906,6 @@ def sum(
29052906
)
29062907
)
29072908
):
2908-
from dpctl.tensor._reduction import _default_reduction_dtype
2909-
29102909
from dpnp.backend.extensions.sycl_ext import _sycl_ext_impl
29112910

29122911
input = a
@@ -2916,7 +2915,7 @@ def sum(
29162915

29172916
queue = input.sycl_queue
29182917
out_dtype = (
2919-
_default_reduction_dtype(input.dtype, queue)
2918+
dtu._default_accumulation_dtype(input.dtype, queue)
29202919
if dtype is None
29212920
else dtype
29222921
)

0 commit comments

Comments
 (0)