提交 d49c2bad 编写于 作者: L Leo Chen 提交者: Zeng Jinle

update inplace grad test to new CompiledProgram API, test=develop (#19359)

上级 b2c4f76c
...@@ -506,7 +506,9 @@ class OpTest(unittest.TestCase): ...@@ -506,7 +506,9 @@ class OpTest(unittest.TestCase):
build_strategy.enable_inplace = enable_inplace build_strategy.enable_inplace = enable_inplace
compiled_program = fluid.CompiledProgram( compiled_program = fluid.CompiledProgram(
grad_program).with_data_parallel( grad_program).with_data_parallel(
build_strategy=build_strategy, places=place) loss_name="",
build_strategy=build_strategy,
places=place)
outs = exe.run(compiled_program, outs = exe.run(compiled_program,
feed=grad_feed_map, feed=grad_feed_map,
fetch_list=grad_fetch_list, fetch_list=grad_fetch_list,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册