tuple negtive tensor index

This commit is contained in:
yangwei 2021-03-20 16:32:48 +08:00
parent dac00c6db3
commit a91d1de7b1
1 changed files with 3 additions and 0 deletions

View File

@ -541,6 +541,9 @@ void AscendStreamAssign::TrailingTimeOptimizationByReorder(const NotNull<KernelG
vector<CNodePtr> 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 {