tqchen commented on code in PR #13868:
URL: https://github.com/apache/tvm/pull/13868#discussion_r1090869599


##########
include/tvm/runtime/module.h:
##########
@@ -192,6 +192,27 @@ class TVM_DLL ModuleNode : public Object {
   /*! \return The module it imports from */
   const std::vector<Module>& imports() const { return imports_; }
 
+  /*!
+   * \brief Returns true if this module supports building from pre-compiled 
programs.
+   *
+   * The default implementation returns false.
+   */
+  virtual bool SupportPreCompiledPrograms() const { return false; }
+
+  /*!
+   * \brief Pass pre-compiled programs which module will use to speed up 
compilation time.
+   * \param bytes string with bytes of pre-compiled programs.
+   */

Review Comment:
   Thank you @echuraev . In that case, perhaps it is worthwhile to have the 
OpenCLModule expose a special packed methods `__GetPreCompiledPrograms` (just 
like what GraphRuntimeExecutor will do) So you can expose them through 
PackedFuncs without having to change  the runtime.Module interface



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