<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLOptimizationHints-c.class/specializationStrategy",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLOptimizationHints(py)specializationStrategy"
  },
  "title" : "specializationStrategy"
}
-->

# specializationStrategy

Optimization strategy for the model specialization.

```
@property (nonatomic, assign, readwrite) MLSpecializationStrategy specializationStrategy;
```

## Discussion

Core ML segments the model’s compute graph and optimizes each segment for the
target compute device. This process can affect the model loading time and the prediction latency.

Use this option to tailor the specialization strategy for your application.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)