diff --git a/python/paddle/tensor/linalg.py b/python/paddle/tensor/linalg.py index e11d8f3aad71ab60faefc7b12a5373c3fdb76a0b..1be53407688115ee47e0e0d7f6c066208933efc1 100644 --- a/python/paddle/tensor/linalg.py +++ b/python/paddle/tensor/linalg.py @@ -1338,7 +1338,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)