Skip to content

Commit 8049930

Browse files
A small update _validate_interp_param
1 parent 699469d commit 8049930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ def _validate_interp_param(param, name, exec_q, usm_type, dtype=None):
370370
f"input arrays and {name} must be allocated "
371371
"on the same SYCL queue"
372372
)
373-
if dtype is not None:
374-
param = param.astype(dtype)
373+
param = param.astype(dtype)
374+
375375
return param
376376

377377
if dpnp.isscalar(param):

0 commit comments

Comments
 (0)