Skip to content

Commit 96f243c

Browse files
Add a new impl to get s_type
1 parent e43b9a3 commit 96f243c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dpnp/linalg/dpnp_utils_linalg.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,7 @@ def dpnp_svd(a, full_matrices=True, compute_uv=True):
578578
a_sycl_queue = a.sycl_queue
579579

580580
uv_type = _common_type(a)
581-
582-
s_type = (
583-
dpnp.float64
584-
if a_sycl_queue.sycl_device.has_aspect_fp64
585-
and (uv_type == dpnp.float64 or uv_type == dpnp.complex128)
586-
else dpnp.float32
587-
)
581+
s_type = uv_type.char.lower()
588582

589583
if a.ndim > 2:
590584
return _dpnp_svd_batch(a, uv_type, s_type, full_matrices, compute_uv)

0 commit comments

Comments
 (0)