diff --git a/python/paddle/tensor/creation.py b/python/paddle/tensor/creation.py index 9f3f016571f0c765f06b64b30bba90182c674600..8208629781bb07957d501ea196e583b33b27329b 100644 --- a/python/paddle/tensor/creation.py +++ b/python/paddle/tensor/creation.py @@ -571,7 +571,7 @@ def full(shape, 'full') check_type(shape, 'shape', (Variable, list, tuple), 'full') if out is not None: - check_type(shape, 'out', (Variable), 'full') + check_type(out, 'out', (Variable), 'full') if out is None: out = helper.create_variable_for_type_inference(dtype=dtype)