Function tvm_sys::ffi::TVMSetStream[][src]

pub unsafe extern "C" fn TVMSetStream(
    device_type: c_int,
    device_id: c_int,
    handle: TVMStreamHandle
) -> c_int
Expand description

\brief Set the runtime stream of current thread to be stream. The subsequent calls to the same device_type will use the setted stream handle. The specific type of stream is runtime device dependent.

\param device_type The device type. \param device_id The device id. \param handle The stream handle. \return 0 when success, nonzero when failure happens