Struct TVMFFIFunctionCell#
- Defined in File c_api.h 
Inheritance Relationships#
Derived Type#
- public tvm::ffi::FunctionObj(Class FunctionObj)
Struct Documentation#
- 
struct TVMFFIFunctionCell#
- Object cell for function object following header. - Subclassed by tvm::ffi::FunctionObj - Public Members - 
TVMFFISafeCallType safe_call#
- A C API compatible call with exception catching. 
 - 
void *cpp_call#
- A function pointer to an underlying cpp call. - The signature is the same as TVMFFISafeCallType except the return type is void, and the function throws exception directly instead of returning error code. We use void* here to avoid depending on c++ compiler. - This pointer should be set to NULL for functions that are not originally created in cpp. - Note - The caller must assume the same cpp exception catching abi when using this pointer. When used across FFI boundaries, always use safe_call. 
 
- 
TVMFFISafeCallType safe_call#