I am working on a case: compile a pytorch model using tvm on g4dn.
But I encountered a problem that the tensor conversion between tvm and pytorch is too slow, since some pre-process and post-process are implemented using pytorch.
I found that DLPACK maybe helpful in this case, thus I tried the example here (https://tvm.apache.org/2018/08/10/DLPack-Bridge). The example works well, but when it comes to my pytorch model, I got the error when calling the converted model: [AttributeError: Module has no function ‘tvm_main’].
I removed the (ctx), and the error has been solved. But I got another error: TVMError: Check failed: type_code_ == kTVMContext (13 vs. 6) : expected TVMContext but get NDArrayContainer