diff --git a/python/paddle/tensor/linalg.py b/python/paddle/tensor/linalg.py index 6006a9dec0cbbf2719d2e203c52694d3f4fac196..2c1732ad62848d7c624a901d9eb1c6ba8f08a66c 100644 --- a/python/paddle/tensor/linalg.py +++ b/python/paddle/tensor/linalg.py @@ -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)