Skip to content

Commit ca2c6aa

Browse files
Removed redundant asdtype function call
1 parent ff9b5eb commit ca2c6aa

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

dpctl/tensor/_reduction.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,12 @@ def _reduction_over_axis(
114114
res_shape = res_shape + (1,) * red_nd
115115
inv_perm = sorted(range(nd), key=lambda d: perm[d])
116116
res_shape = tuple(res_shape[i] for i in inv_perm)
117-
return dpt.astype(
118-
dpt.full(
119-
res_shape,
120-
_identity,
121-
dtype=dtype,
122-
usm_type=res_usm_type,
123-
sycl_queue=q,
124-
),
125-
res_dt,
117+
return dpt.full(
118+
res_shape,
119+
_identity,
120+
dtype=res_dt,
121+
usm_type=res_usm_type,
122+
sycl_queue=q,
126123
)
127124
if red_nd == 0:
128125
return dpt.astype(x, res_dt, copy=False)

0 commit comments

Comments
 (0)