!17190 clear warning

From: @huaweib
Reviewed-by: @zhoufeng54,@kisnwang
Signed-off-by: @kisnwang
This commit is contained in:
mindspore-ci-bot 2021-05-29 14:45:27 +08:00 committed by Gitee
commit c7a0930ded
1 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ constexpr size_t kReturnDataIndex = 1;
using PrimitiveSet = std::unordered_set<PrimitivePtr, PrimitiveHasher, PrimitiveEqual>;
PrimitiveSet follow_first_input_prims = {prim::kPrimDepend, prim::kPrimLoad};
const PrimitiveSet follow_first_input_prims = {prim::kPrimDepend, prim::kPrimLoad};
bool IsShapeDynamic(const abstract::ShapePtr &shape) {
MS_EXCEPTION_IF_NULL(shape);
@ -265,8 +265,8 @@ KernelWithIndex AnfRuntimeAlgorithm::VisitKernelWithReturnType(const AnfNodePtr
auto cnode = anf_node->cast<CNodePtr>();
MS_EXCEPTION_IF_NULL(cnode);
if (CheckPrimitiveType(cnode, prim::kPrimTupleGetItem)) {
auto item_with_index_tmp = VisitKernelWithReturnType(GetTupleGetItemRealInput(cnode),
GetTupleGetItemOutIndex(cnode), visit_nop_node, return_types);
auto item_with_index_tmp = VisitKernelWithReturnType(
GetTupleGetItemRealInput(cnode), SizeToInt(GetTupleGetItemOutIndex(cnode)), visit_nop_node, return_types);
if (CheckPrimitiveType(item_with_index_tmp.first, prim::kPrimMakeTuple)) {
MS_EXCEPTION_IF_NULL(item_with_index_tmp.first);
auto make_tuple = item_with_index_tmp.first->cast<CNodePtr>();