提交 3f9263f6 编写于 作者: Q Qiao Longfei

optimize style test=develop

上级 4233d0a8
...@@ -935,8 +935,7 @@ void DistSSAGraphBuilder::InsertPostprocessOps(ir::Graph *result) const { ...@@ -935,8 +935,7 @@ void DistSSAGraphBuilder::InsertPostprocessOps(ir::Graph *result) const {
// 3. CPU && AllReduce: AllReduce all gradient to each thread. Need to // 3. CPU && AllReduce: AllReduce all gradient to each thread. Need to
// broadcast received parameters to other scope. // broadcast received parameters to other scope.
// 4. CPU && Reduce: because all parameters share the same memory, did not // 4. CPU && Reduce: because all parameters share the same memory, did not
// broadcast // broadcast received parameters.
// received parameters.
if (!UseGPU() && if (!UseGPU() &&
strategy_.reduce_ == BuildStrategy::ReduceStrategy::kReduce) { strategy_.reduce_ == BuildStrategy::ReduceStrategy::kReduce) {
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册