optimize style test=develop

revert-15774-anakin_subgraph_engine
Qiao Longfei 6 years ago
parent 4233d0a820
commit 3f9263f67e

@ -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;

Loading…
Cancel
Save