Function TVMBackendFreeWorkspace#
Defined in File c_backend_api.h
Function Documentation#
-
int TVMBackendFreeWorkspace(int device_type, int device_id, void *ptr)#
Backend function to free temporal workspace.
See also
- Parameters:
ptr – The result allocated space pointer.
device_type – The device type which the space will be allocated.
device_id – The device id which the space will be allocated.
- Returns:
0 on success, -1 on failure. Failure records the raised TVM FFI error on the calling thread; no C++ exception crosses this C entry point.