junrushao opened a new pull request, #331: URL: https://github.com/apache/tvm-ffi/pull/331
This PR introduces two public APIs to `Module`: - **`Module.set_keep_alive(keep_alive: bool)`.** For unloadable modules (e.g. DSOs), set it to "keep alive" mode means it won't be closed in the destructor, unless `close()` method is explicitly called. - **`Module.close()`.** For unloadable modules (e.g. DSOs), it explicitly closes the module which doesn't defer to destructors. Two existing APIs are exposed to Python: - **`Module.load_from_bytes`** - **`Module.save_to_bytes`** -- 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]
