Skip to content

Commit b07f185

Browse files
committed
Remove redundant default dtype handling in dpnp.identity()
1 parent e36835d commit b07f185

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dpnp/dpnp_iface_arraycreation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,10 +2664,9 @@ def identity(
26642664

26652665
dpnp.check_limitations(like=like)
26662666

2667-
_dtype = dpnp.default_float_type() if dtype is None else dtype
26682667
return dpnp.eye(
26692668
n,
2670-
dtype=_dtype,
2669+
dtype=dtype,
26712670
device=device,
26722671
usm_type=usm_type,
26732672
sycl_queue=sycl_queue,

0 commit comments

Comments
 (0)