Skip to main content

tract_inference_model_into_model

Function tract_inference_model_into_model 

Source
pub unsafe extern "C" fn tract_inference_model_into_model(
    model: *mut *mut TractInferenceModel,
    typed: *mut *mut TractModel,
) -> TRACT_RESULT
Expand description

Transform a fully analysed InferenceModel to a TypedModel.

This function takes ownership of the InferenceModel model whether it succeeds or not. tract_inference_model_destroy must not be used on model.

On the other hand, caller will be owning the newly created typed model.