!14433 Ignore items order in HyperMap.

From: @zh_qh
Reviewed-by: @hwhewei,@ginfung
Signed-off-by: @ginfung
This commit is contained in:
mindspore-ci-bot 2021-05-07 16:16:37 +08:00 committed by Gitee
commit 7a3d9f2ad7
11 changed files with 3 additions and 0 deletions

View File

View File

View File

View File

View File

View File

@ -186,6 +186,7 @@ AnfNodePtr HyperMap::FullMake(const std::shared_ptr<List> &type, const FuncGraph
});
auto call_node = func_graph->NewCNodeInOrder(inputs2);
call_node->AddAttr(kAttrIgnoreSideEffect, MakeValue(true));
inputs.push_back(call_node);
}
return func_graph->NewCNodeInOrder(inputs);
@ -225,6 +226,7 @@ AnfNodePtr HyperMap::FullMake(const std::shared_ptr<Tuple> &type, const FuncGrap
});
auto call_node = func_graph->NewCNodeInOrder(inputs2);
call_node->AddAttr(kAttrIgnoreSideEffect, MakeValue(true));
inputs.push_back(call_node);
}
return func_graph->NewCNodeInOrder(inputs);
@ -257,6 +259,7 @@ AnfNodePtr HyperMap::FullMake(const std::shared_ptr<Class> &type, const FuncGrap
}
auto call_node = func_graph->NewCNodeInOrder(inputs2);
call_node->AddAttr(kAttrIgnoreSideEffect, MakeValue(true));
inputs.push_back(call_node);
}
return func_graph->NewCNodeInOrder(inputs);