tract_inference_model_into_optimized

Function tract_inference_model_into_optimized 

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

Convenience function to obtain an optimized TypedModel from an InferenceModel.

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 optimized model.