Skip to content

Commit

Permalink
Fix aot failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepapadim committed Sep 10, 2021
1 parent 5b3fb11 commit b965443
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/relay/backend/aot_executor_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,11 @@ class AOTExecutorCodegen : public MixedModeVisitor {
Downcast<tir::PrimFunc>(mod_run->Lookup(::tvm::runtime::symbol::tvm_run_func_suffix)),
workspace_byte_alignment);

lowered_mod = WithAttr(lowered_mod, "main_func_info", func_info);

Optional<backend::FunctionInfo> main_func_info =
lowered_mod->GetAttr<backend::FunctionInfo>("main_func_info");

ICHECK(main_func_info) << "The attribute \"main_func_info\" should be set at this point.";
main_func_info.value()->workspace_sizes.Set(target_host_, main_workspace_size);
function_metadata_.Set(runtime::symbol::tvm_module_main, main_func_info.value());
Expand Down

0 comments on commit b965443

Please sign in to comment.