This folder contains an example that implements a C++ module that can be directly loaded as TVM's DSOModule (via tvm.runtime.load_module)
When possible, we always recommend exposing functions that modifies memory passed by the caller, and calls into the runtime API for memory allocations.
In advanced usecases, we do allow the plugin module to create and return managed objects. However, there are several restrictions to keep in mind: