Function tvm::runtime::function::ffi::TVMBackendFreeWorkspace [−][src]
pub unsafe extern "C" fn TVMBackendFreeWorkspace(
device_type: i32,
device_id: i32,
ptr: *mut c_void
) -> i32
Expand description
\brief Backend function to free temporal workspace.
\param ptr The result allocated space pointer. \param device_type The device type which the space will be allocated. \param device_id The device id which the space will be allocated. \return 0 when no error is thrown, -1 when failure happens
\sa TVMBackendAllocWorkspace