tqchen commented on code in PR #15244:
URL: https://github.com/apache/tvm/pull/15244#discussion_r1262645644
##########
include/tvm/target/codegen.h:
##########
@@ -77,6 +84,16 @@ std::string PackImportsToC(const runtime::Module& m, bool
system_lib,
runtime::Module PackImportsToLLVM(const runtime::Module& m, bool system_lib,
const std::string& target_triple,
const std::string& c_symbol_prefix = "");
+
+/*
+ * Encode TVM runtime module to base64 stream
+ */
+std::string serialize(tvm::runtime::Module module);
Review Comment:
SerializeModuleToBase64
##########
include/tvm/target/codegen.h:
##########
@@ -47,6 +47,13 @@ using runtime::TVMRetValue;
*/
runtime::Module Build(IRModule mod, Target target);
+/*!
+ * \brief Serialize runtime module including
+ *
+ * \param mod The runtime module to serialize including its import tree.
+ */
+std::string SerializeModule(const runtime::Module& mod);
Review Comment:
SerializeModuleToBytes
--
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]