Skip to content

Commit

Permalink
Don't use Update : IRModule because it is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
electriclilies committed Aug 20, 2021
1 parent 120b14a commit 9015163
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/relay/backend/te_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,9 @@ IRModule LoweredModuleToIRModule(LoweredModule mod) {
IRModule unified_module;

// Copy the main module and its typedefs
unified_module->Update(mod.main_module);
for (const auto& kv : mod.main_module->functions) {
unified_module->Add(kv.first, kv.second);
}
for (const auto& kv : mod.main_module->type_definitions) {
unified_module->AddTypeDef(kv.first, kv.second);
}
Expand Down

0 comments on commit 9015163

Please sign in to comment.