---
title: specializationStrategy
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mloptimizationhints-swift.struct/specializationstrategy-swift.property
---

# specializationStrategy

Optimization strategy for the model specialization.

## Declaration

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

## Discussion

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.

## See Also

### Getting the specialization strategy

- [MLOptimizationHints.SpecializationStrategy](coreml/mloptimizationhints-swift.struct/specializationstrategy-swift.enum.md)
