Hi Guys:
I am reading the TVM code, and feels confuse about C_TO_PY_ARG_SWITCH and RETURN_SWITCH defined in _ctypes/types.py.
It seems that they are dictionaries to transform the C output to the python counterpart. I know that their definition is enlarged at function.py. But I still don’t understand the real difference between them:
- What scenario will each of them be used ?
- Why we need two dictionaries instead of one ?
Thanks.