Function tract::tract_runnable_run
source · #[no_mangle]
pub unsafe extern "C" fn tract_runnable_run(
runnable: *mut TractRunnable,
inputs: *mut *mut TractValue,
outputs: *mut *mut TractValue
) -> TRACT_RESULT
Expand description
Convenience function to run a stateless model.
inputs
is a pointer to an pre-existing array of input TractValue. Its length must be equal
to the number of inputs of the models. The function does not take ownership of the input
values.
outputs
is a pointer to a pre-existing array of TractValue pointers that will be overwritten
with pointers to outputs values. These values are under the responsiblity of the caller, it
will have to release them with tract_value_destroy
.