echuraev commented on code in PR #13868:
URL: https://github.com/apache/tvm/pull/13868#discussion_r1093024517
##########
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:
Added functionality to call these functions by using method `GetFunction`.
--
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]