提交 3397eee6 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2950 [AutoParallel]Fix_codedex

Merge pull request !2950 from lichen/fix_codedex
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册