From d49c2bad71f1519d28dc89cedc3add992880fc13 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Thu, 22 Aug 2019 23:00:32 +0800 Subject: [PATCH] update inplace grad test to new CompiledProgram API, test=develop (#19359) --- python/paddle/fluid/tests/unittests/op_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/op_test.py b/python/paddle/fluid/tests/unittests/op_test.py index 176221a0d43..2b45bc07b1d 100644 --- a/python/paddle/fluid/tests/unittests/op_test.py +++ b/python/paddle/fluid/tests/unittests/op_test.py @@ -506,7 +506,9 @@ class OpTest(unittest.TestCase): build_strategy.enable_inplace = enable_inplace compiled_program = fluid.CompiledProgram( grad_program).with_data_parallel( - build_strategy=build_strategy, places=place) + loss_name="", + build_strategy=build_strategy, + places=place) outs = exe.run(compiled_program, feed=grad_feed_map, fetch_list=grad_fetch_list, -- GitLab