manupa-arm commented on a change in pull request #9565:
URL: https://github.com/apache/tvm/pull/9565#discussion_r783273330
##########
File path: src/relay/backend/aot_executor_codegen.cc
##########
@@ -859,20 +922,28 @@ class AOTExecutorCodegen : public MixedModeVisitor {
ret.external_mods = external_modules.value();
- if (ret.lowered_funcs.find(target_host_) != ret.lowered_funcs.end()) {
- VLOG(1) << "merging main into existing module for host target";
- ret.lowered_funcs[target_host_]->Update(mod_run);
- } else {
- VLOG(1) << "adding main into new module for host target";
- ret.lowered_funcs.Set(target_host_, mod_run);
+ Map<tir::Var, tir::usmp::AllocatedPoolInfo> pool_var_info;
+ std::vector<tir::Var> pool_vars;
+ tir::PrimFunc tir_main_func =
+
Downcast<tir::PrimFunc>(lowered_mod->Lookup(::tvm::runtime::symbol::tvm_run_func_suffix));
+ Optional<Array<tir::usmp::AllocatedPoolInfo>> allocated_pool_infos =
+
tir_main_func->GetAttr<Array<tir::usmp::AllocatedPoolInfo>>(tvm::attr::kPoolArgs);
+ int main_workspace_size = 0;
Review comment:
Removed. not needed really :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]