We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb3c8e commit c45c884Copy full SHA for c45c884
python/paddle/fluid/tests/unittests/test_fleet_graph_executor.py
@@ -80,15 +80,17 @@ def gen_data():
80
cost_val = exe.run(feed=gen_data(), fetch_list=[avg_cost.name])
81
print("cost of step[{}] = {}".format(i, cost_val))
82
83
- proc_a = launch_func(node_func, node_a)
84
- proc_a.start()
+ # rank 1
+ proc_b = launch_func(node_func, node_b)
85
+ proc_b.start()
86
87
+ # rank 0, for wait server ready coverage
88
# just for coverage
- for key in node_b:
- os.environ[key] = node_b[key]
89
+ for key in node_a:
90
+ os.environ[key] = node_a[key]
91
node_func()
92
- proc_a.join()
93
+ proc_b.join()
94
95
96
if __name__ == "__main__":
0 commit comments