Skip to content

Commit 723d3b8

Browse files
committed
fixup! [USMP] Adding support for U4 usecase
Change-Id: I857f3d0ba7bc192d56d750c44b232998b2876e7a
1 parent 662d278 commit 723d3b8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/relay/backend/aot_executor_codegen.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)