Function tract::tract_inference_model_set_output_fact

source ·
#[no_mangle]
pub unsafe extern "C" fn tract_inference_model_set_output_fact(
    model: *mut TractInferenceModel,
    output_id: usize,
    fact: *const TractInferenceFact
) -> TRACT_RESULT
Expand description

Set an output fact of an InferenceModel.

The fact argument is only borrowed by this function, it still must be destroyed. fact can be set to NULL to erase the current output fact of the model.