forked from mindspore-Ecosystem/mindspore
!17190 clear warning
From: @huaweib Reviewed-by: @zhoufeng54,@kisnwang Signed-off-by: @kisnwang
This commit is contained in:
commit
c7a0930ded
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue