File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1081,10 +1081,15 @@ class AOTExecutorCodegen : public MixedModeVisitor {
10811081 if (lowered_main_func->body ->IsInstance <TupleNode>()) {
10821082 Tuple output_tuple = Downcast<Tuple>(lowered_main_func->body );
10831083 for (unsigned i = 0 ; i < output_tuple->fields .size (); i++) {
1084- CreateIOVar (output_tuple->fields [i], output_tensor_names[i]);
1084+ // AoT Executor Codegen does not create these names,
1085+ // thus should be used as they are provided.
1086+ CreateIOVar (output_tuple->fields [i], output_tensor_names[i],
1087+ /* use_unique_name = */ false );
10851088 }
10861089 } else {
1087- CreateIOVar (lowered_main_func->body , output_tensor_names[0 ]);
1090+ // AoT Executor Codegen does not create these names,
1091+ // thus should be used as they are provided.
1092+ CreateIOVar (lowered_main_func->body , output_tensor_names[0 ], /* use_unique_name = */ false );
10881093 }
10891094 } else {
10901095 // If output tensor names are not provided we will generate output(x)
You can’t perform that action at this time.
0 commit comments