<!--
{
  "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-swift.struct/specializationStrategy-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "s:6CoreML19MLOptimizationHintsV22specializationStrategyAC014SpecializationF0Ovp"
  },
  "title" : "specializationStrategy"
}
-->

# specializationStrategy

Optimization strategy for the model specialization.

```
var specializationStrategy: MLOptimizationHints.SpecializationStrategy
```

## Discussion

Core ML segments the model’s compute graph and specializes 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 model.

---

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)