---
title: MLComputeUnits.cpuOnly
framework: coreml
role: symbol
role_heading: Case
path: coreml/mlcomputeunits/cpuonly
---

# MLComputeUnits.cpuOnly

The option you choose to limit the model to only use the CPU.

## Declaration

```swift
case cpuOnly
```

## See Also

### Processing Unit Configurations

- [MLComputeUnits.all](coreml/mlcomputeunits/all.md)
- [MLComputeUnits.cpuAndGPU](coreml/mlcomputeunits/cpuandgpu.md)
- [MLComputeUnits.cpuAndNeuralEngine](coreml/mlcomputeunits/cpuandneuralengine.md)
