Skip to content

Commit 5dae6f3

Browse files
svd: fix conditions in python layer (#556)
1 parent 7a86d6a commit 5dae6f3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dpnp/linalg/dpnp_iface_linalg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,13 @@ def svd(a, full_matrices=True, compute_uv=True, hermitian=False):
460460
if not use_origin_backend(a):
461461
if not isinstance(a, dparray):
462462
pass
463-
if not a.ndim == 2:
463+
elif not a.ndim == 2:
464464
pass
465-
if not full_matrices == True:
465+
elif not full_matrices == True:
466466
pass
467-
if not compute_uv == True:
467+
elif not compute_uv == True:
468468
pass
469-
if not hermitian == False:
469+
elif not hermitian == False:
470470
pass
471471
else:
472472
return dpnp_svd(a, full_matrices, compute_uv, hermitian)

0 commit comments

Comments
 (0)