提交 3aa2a8ff 编写于 作者: Y Yu Yang

Follow comments

上级 02aaecca
......@@ -29,11 +29,6 @@ void SSAGraphBuilder::PolishGraphToSupportDataHazards(SSAGraph *graph) {
for (; it_old != name_pair.second.rend(); it_new = it_old, ++it_old) {
auto *write_op = it_new->second.generated_op_;
auto &read_ops = it_old->second.pending_ops_;
auto *ex_write_op = it_old->second.generated_op_;
if (ex_write_op == nullptr) { // Nobody write this var.
continue;
}
for (auto *read_op : read_ops) {
// Manually add a dependency var from read_op to write_op;
......
......@@ -144,4 +144,3 @@ void ParallelExecutor::Run(const std::vector<std::string> &fetch_tensors,
} // namespace framework
} // namespace paddle
A
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册