def METHOD_NAME(self) -> Model:
    """
    Run the InferenceModel through the full tract optimisation pipeline to get an
    optimised Model.
    """
    self._valid()
    model = c_void_p()
    check(lib.tract_inference_model_into_optimized(byref(self.ptr), byref(model)))
    return Model(model)