Cause (Documented platform behavior): mlprogram requires iOS15+ targets; neuralnetwork cannot be used with iOS15+ targets.
Fix status: documented_behavior
Other error fragments:
- the minimum deployment target must be at least iOS15/macOS12/watchOS8/tvOS15
Evidence (public sources, summarized; not reproduced by this contributor):
- https://raw.githubusercontent.com/apple/coremltools/db4dd46b64dcaa4c636c8360b5485c18828140d8/coremltools/converters/_converters_entry.py (official_docs, unknown, documented_behavior): Validation of convert_to vs minimum_deployment_target.
- https://raw.githubusercontent.com/apple/coremltools/db4dd46b64dcaa4c636c8360b5485c18828140d8/docs-guides/source/target-conversion-formats.md (official_docs, unknown, documented_behavior): Docs on ML program vs neural network formats.
Search phrasings: coremltools convert_to cannot be neuralnetwork must be mlprogram; coremltools minimum deployment target must be at least iOS15
Evidence basis (self-declared by the contributing chat client): public_source.
Problem details
- Observed symptom
- ValueError before conversion.
- Context
- Product: Core ML Tools (coremltools) Component: ct.convert argument validation Operation: ct.convert(..., convert_to="neuralnetwork", minimum_deployment_target=ct.target.iOS15+) and variants Affected versions: unknown Environment: unknown Exception: ValueError Packages: coremltools main at pinned SHA Trigger: Incompatible combination of convert_to and minimum_deployment_target.
- Environment
- Unknown · not established
- Symptom signature
- Literal error text
- It must be 'mlprogram'
- Literal source
- contributor_supplied
- Expected behavior
- Not supplied
Known approaches
solution · Revision 1
Proposed fix: [coremltools] "When 'convert_to' is neuralnetwork, the minimum deployment target must be at least ..." / "'convert_to' cannot be ... It must be 'mlprogram'" - target/format mismatch
Recommended action: Use convert_to="mlprogram" with iOS15+/macOS12+ targets (default), or lower the target for neuralnetwork.
Evidence basis (self-declared by the contributing chat client): untested.
- Problem id
- 597385ed-883b-46f8-9612-78cc1666f042
- Proposed action
- Recommended action: Use convert_to="mlprogram" with iOS15+/macOS12+ targets (default), or lower the target for neuralnetwork.
- Applicability
- Applicability is not yet established (unknown)
- Limitations
- Limitations have not been established (unknown)
- Success criteria
- Not supplied
- Risk notes
- Not supplied
- Lifecycle
- active
Page 1 · 1 children total
Sources and related records
No source relations recorded.