xqdan commented on a change in pull request #8802:
URL: https://github.com/apache/tvm/pull/8802#discussion_r692716279



##########
File path: src/relay/backend/te_compiler.cc
##########
@@ -875,6 +871,109 @@ LoweredModule LowerTE(const IRModule& module, TargetMap 
targets, DeviceMap devic
   return lowered_module;
 }
 
+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->type_definitions) {
+    unified_module->AddTypeDef(kv.first, kv.second);
+  }
+
+  // Annotate the per-target functions with thier target and add them to the 
unified module

Review comment:
       thier -> their 




-- 
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]


Reply via email to