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

# reshapeFrequency

The anticipated reshape frequency

```
@property (nonatomic, assign, readwrite) MLReshapeFrequencyHint reshapeFrequency;
```

## Discussion

CoreML framework needs to reshape the model with new shapes for models with flexible input.
Specify the anticipated reshape frequency (frequent or infrequent), so that the framework can optimize for
fast shape switching or fast prediction on seen shapes.

The default value is frequent, which means CoreML tries to switch to new shapes as fast as possible

---

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)