diff --git a/python/paddle/fluid/tests/unittests/test_inverse_op.py b/python/paddle/fluid/tests/unittests/test_inverse_op.py index ca6bf685a9b90550dc2c31b94b014e9a2774a2cb..5349654ac27800d2e70c4b77f6531853178fd3ed 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")