Use custom C++ code with TVM

Hi again @masahi! Replying in this thread for ease.

I followed the code structure in https://tvm.apache.org/docs/dev/runtime.html#packedfunc.

Currently, my .cpp file has

In a .py file, I am trying to do

I get the following error:

I tried searching in the forum, but I was unable to find a solution that worked for me. Any ideas?