Skip to content

Commit

Permalink
Remove wrong check_variable_and_dtype in matrix_rank (#42062)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f committed Apr 21, 2022
1 parent 9b1107e commit 5c73822
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/paddle/tensor/linalg.py
Expand Up @@ -1441,7 +1441,6 @@ def matrix_rank(x, tol=None, hermitian=False, name=None):
if tol is None:
attrs['use_default_tol'] = True
elif isinstance(tol, Variable):
check_variable_and_dtype(tol, 'tol', ['float32'], 'matrix_rank')
attrs['use_default_tol'] = False
if tol.dtype != x.dtype:
inputs['TolTensor'] = cast(tol, x.dtype)
Expand Down

0 comments on commit 5c73822

Please sign in to comment.