We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f2644 commit 0ca4e10Copy full SHA for 0ca4e10
dpnp/dpnp_iface_mathematical.py
@@ -39,6 +39,7 @@
39
40
41
import dpctl.tensor as dpt
42
+import dpctl.tensor._type_utils as dtu
43
import numpy
44
from numpy.core.numeric import (
45
normalize_axis_index,
@@ -2905,8 +2906,6 @@ def sum(
2905
2906
)
2907
2908
):
- from dpctl.tensor._reduction import _default_reduction_dtype
2909
-
2910
from dpnp.backend.extensions.sycl_ext import _sycl_ext_impl
2911
2912
input = a
@@ -2916,7 +2915,7 @@ def sum(
2916
2915
2917
queue = input.sycl_queue
2918
out_dtype = (
2919
- _default_reduction_dtype(input.dtype, queue)
+ dtu._default_accumulation_dtype(input.dtype, queue)
2920
if dtype is None
2921
else dtype
2922
0 commit comments