pub unsafe extern "C" fn tract_state_run(
state: *mut TractState,
inputs: *mut *mut TractValue,
outputs: *mut *mut TractValue,
) -> TRACT_RESULTExpand description
Run a turn on a model state
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.