Creating TVMArgs and calling PackedFunc manually

Hi all,

I am working on a application to run TVM models on a disaggregated system (in this case FractOS). For this I am writing an execution engine taking the shared object and graph descriptions generated by TVM. I am struggling to find documentation on how I can create the tvm::runtime::TVMArgs objects based on the parameters to call the corresponding function. How can I create the TVMArgs object from the parameter NDArray and how can I pass on the result from the previous operation?

I am aware, that the manual calling is probably not a intended use-case, but I hope someone can still help me.

You can use TVMArgsSetter https://github.com/apache/tvm/blob/main/include/tvm/runtime/packed_func.h#L1514

See https://github.com/apache/tvm/blob/main/include/tvm/runtime/packed_func.h#L1615