Browse Source

!2950 [AutoParallel]Fix_codedex

Merge pull request !2950 from lichen/fix_codedex
tags/v0.6.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
3397eee672
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      mindspore/ccsrc/parallel/ops_info/gather_v2_p_info.cc

+ 2
- 5
mindspore/ccsrc/parallel/ops_info/gather_v2_p_info.cc View File

@@ -438,12 +438,9 @@ std::vector<int32_t> GetRankFromGroup(const Group &group) {

Status GatherV2PInfo::InferForwardCommunication() {
forward_op_.clear();
if (target_ != CPU) {
return SUCCESS;
}
auto param_strategy = strategy_->GetInputDim().at(0);
// don't split axis, no need forward communication
if (param_strategy.at(IntToSize(axis_)) == 1) {
// don't split axis or target is not CPU, no need forward communication
if (target_ != CPU || param_strategy.at(IntToSize(axis_)) == 1) {
return SUCCESS;
}
// split axis


Loading…
Cancel
Save