You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change default minimum_deployment_target to None and support CoreML models with no inputs (#13053)
This PR changes the default minimum_deployment_target in CoreML from the
fixed iOS15 to None. This will automatically select the minimum
deployment target required to export the model.
A warning occurs after export telling the user the deploymnet target
selected, and directing them to specify a specific target if that is
what they need.
This is more in line with how CoreML standalone works.
In addition, this PR allows running CoreML models with no user inputs,
which requires CoreML deployment target iOS18 or higher.
This addresses:
* #11719
* #12906
f"The model with identifier {identifier} was exported with CoreML specification version {model_spec.specificationVersion}, and it will not run on all version of iOS/macOS."
370
+
" See https://apple.github.io/coremltools/mlmodel/Format/Model.html#model for information on what OS versions are compatible with this specifcation version."
371
+
" If you want to control the deployment target, please set the minimum_deployment_target compile spec in the CoreMLPartitioner."
0 commit comments