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

# reshapeFrequency

The anticipated reshape frequency

## Declaration

```swift
var reshapeFrequency: MLOptimizationHints.ReshapeFrequency
```

## Discussion

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

## See Also

### Getting the reshape frequency

- [MLOptimizationHints.ReshapeFrequency](coreml/mloptimizationhints-swift.struct/reshapefrequency-swift.enum.md)
