Skip to content

Commit

Permalink
fixup! [USMP] Adding support for U4 usecase
Browse files Browse the repository at this point in the history
Change-Id: I857f3d0ba7bc192d56d750c44b232998b2876e7a
  • Loading branch information
manupak committed Apr 25, 2022
1 parent 662d278 commit 723d3b8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/relay/backend/aot_executor_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1081,10 +1081,15 @@ class AOTExecutorCodegen : public MixedModeVisitor {
if (lowered_main_func->body->IsInstance<TupleNode>()) {
Tuple output_tuple = Downcast<Tuple>(lowered_main_func->body);
for (unsigned i = 0; i < output_tuple->fields.size(); i++) {
CreateIOVar(output_tuple->fields[i], output_tensor_names[i]);
// AoT Executor Codegen does not create these names,
// thus should be used as they are provided.
CreateIOVar(output_tuple->fields[i], output_tensor_names[i],
/*use_unique_name = */ false);
}
} else {
CreateIOVar(lowered_main_func->body, output_tensor_names[0]);
// AoT Executor Codegen does not create these names,
// thus should be used as they are provided.
CreateIOVar(lowered_main_func->body, output_tensor_names[0], /*use_unique_name = */ false);
}
} else {
// If output tensor names are not provided we will generate output(x)
Expand Down

0 comments on commit 723d3b8

Please sign in to comment.