未验证 提交 af95a8b4 编写于 作者: W wanghuancoder 提交者: GitHub

refine eager code gen (#51746)

上级 41607667
......@@ -143,7 +143,9 @@ def GenerateFileStructureForIntermediateDygraph(eager_dir, split_count):
for i in range(split_count):
f.write("nodes" + str(i + 1) + ".cc ")
f.write("${fluid_manual_nodes} DEPS ${eager_deps} ${fluid_deps})\n")
f.write("add_dependencies(dygraph_node copy_dygraph_node)\n")
f.write(
"add_dependencies(dygraph_node copy_dygraph_node copy_dygraph_forward_functions)\n"
)
with open(forwards_level_cmakelist_path, "w") as f:
f.write("add_custom_target(\n")
......@@ -181,7 +183,7 @@ def GenerateFileStructureForIntermediateDygraph(eager_dir, split_count):
"${fluid_manual_functions} DEPS ${eager_deps} ${fluid_deps} ${GLOB_OP_LIB} ${GLOB_OPERATOR_DEPS})\n"
)
f.write(
"add_dependencies(dygraph_function copy_dygraph_forward_functions)\n"
"add_dependencies(dygraph_function copy_dygraph_forward_functions copy_dygraph_node)\n"
)
with open(generated_level_cmakelist_path, "w") as f:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册