tqchen commented on code in PR #331:
URL: https://github.com/apache/tvm-ffi/pull/331#discussion_r2611659703


##########
include/tvm/ffi/extra/module.h:
##########
@@ -262,6 +278,13 @@ class Module : public ObjectRef {
    *  Re-create import relationship by calling Import.
    */
   TVM_FFI_EXTRA_CXX_API static Module LoadFromFile(const String& file_name);
+  /*!
+   * \brief Load a module from bytes.
+   * \param kind The kind of the module.
+   * \param bytes The bytes we want to load the module from.
+   * \return The loaded module.
+   */
+  TVM_FFI_EXTRA_CXX_API static Module LoadFromBytes(const std::string& kind, 
const Bytes& bytes);

Review Comment:
   right, they are API to be implemented, but not something supposed to be 
called directly in most cases



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to