From a91d1de7b196a98859cf870fb15e734999fe81c1 Mon Sep 17 00:00:00 2001 From: yangwei Date: Sat, 20 Mar 2021 16:32:48 +0800 Subject: [PATCH] tuple negtive tensor index --- mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc b/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc index c59a7b4434..5444047536 100644 --- a/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc +++ b/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc @@ -541,6 +541,9 @@ void AscendStreamAssign::TrailingTimeOptimizationByReorder(const NotNull subgraph_cnodes; while (pos < cnode_ptr_list.end() && AnfAlgo::GetGraphId((*pos).get()) == subgraph_id) { + if (AnfAlgo::GetCNodeName(*pos) == kLabelGotoOpName) { + break; + } if (*pos != first_output_ptr) { subgraph_cnodes.emplace_back(*pos); } else {