Skip to content

Commit 365abdd

Browse files
committed
Update reduction functions to pass dtype as positional argument to astype
1 parent 1ee8e19 commit 365abdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/dpnp_utils/dpnp_utils_reduction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def dpnp_wrap_reduction_call(usm_a, out, _reduction_fn, res_dt, **kwargs):
4040

4141
# dpctl requires strict data type matching of out array with the result
4242
if out.dtype != res_dt:
43-
out = dpnp.astype(out, dtype=res_dt, copy=False)
43+
out = dpnp.astype(out, res_dt, copy=False)
4444

4545
usm_out = dpnp.get_usm_ndarray(out)
4646

0 commit comments

Comments
 (0)