Function tract::tract_model_into_runnable

source ยท
#[no_mangle]
pub unsafe extern "C" fn tract_model_into_runnable(
    model: *mut *mut TractModel,
    runnable: *mut *mut TractRunnable
) -> TRACT_RESULT
Expand description

Convert a TypedModel into a TypedRunnableModel.

This function transfers ownership of the model argument to the newly-created runnable model.

Runnable are reference counted. When done, it should be released with tract_runnable_release.