forked from mindspore-Ecosystem/mindspore
!46176 fix_opt_shard_not_fullshard
Merge pull request !46176 from yao_yf/fix_opt_shard_not_fullshard
This commit is contained in:
commit
4403295e38
|
@ -1065,6 +1065,9 @@ CNodePtr SkipTrivialNodesMoveUp(CNodePtr node) {
|
|||
MS_EXCEPTION_IF_NULL(node);
|
||||
while (True) {
|
||||
if (IsPrimitiveCNode(node, prim::kPrimLoad) || IsInTrivialNodeList(node) || IsInAllGatherNodeList(node)) {
|
||||
if (IsPrimitiveCNode(node->input(1), prim::kPrimMicroStepAllGather)) {
|
||||
return node;
|
||||
}
|
||||
if (node->input(1)->isa<Parameter>()) {
|
||||
return node;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue