I am reading the TVM source, I am trying to figure out the convert process, for example, if I write a code like this: “a = tvm.placeholder(xxx)”, I know it will call API function(Tensor placeholder(Array shape, Type dtype, std::string name)) in libtvm.so, but how does it happen? could someone give me some hint about the process?
PS:
I used to call C function in shared lib in Python code using ctypes, but is it possible for C++? For some C++ functions, it will return class type, how does python code map it?