From d160e57a5c6b045d6a7adf67158558de5b65b30d Mon Sep 17 00:00:00 2001 From: wangchaochaohu Date: Thu, 28 May 2020 16:12:23 +0800 Subject: [PATCH] fix the full error message test=develop (#24773) --- python/paddle/tensor/creation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/tensor/creation.py b/python/paddle/tensor/creation.py index 9f3f016571..8208629781 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) -- GitLab