From f0b8871741a856c334bd7707857beb026d398c99 Mon Sep 17 00:00:00 2001 From: WuHaobo <14162525+WuHaobo@users.noreply.github.com> Date: Tue, 4 Aug 2020 07:21:41 +0800 Subject: [PATCH] Delete inverse out (#25925) * test=develop,test=document_fix, remove the out args * delete out in inverse --- python/paddle/fluid/tests/unittests/test_inverse_op.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_inverse_op.py b/python/paddle/fluid/tests/unittests/test_inverse_op.py index ca6bf685a9b..5349654ac27 100644 --- a/python/paddle/fluid/tests/unittests/test_inverse_op.py +++ b/python/paddle/fluid/tests/unittests/test_inverse_op.py @@ -142,14 +142,10 @@ class TestInverseSingularAPI(unittest.TestCase): if core.is_compiled_with_cuda(): self.places.append(fluid.CUDAPlace(0)) - def check_static_result(self, place, with_out=False): + def check_static_result(self, place): with fluid.program_guard(fluid.Program(), fluid.Program()): input = fluid.data(name="input", shape=[4, 4], dtype="float64") - if with_out: - out = fluid.data(name="output", shape=[4, 4], dtype="float64") - else: - out = None - result = paddle.inverse(input=input, out=out) + result = paddle.inverse(input=input) input_np = np.zeros([4, 4]).astype("float64") -- GitLab