---
title: MLComputeUnits.cpuAndNeuralEngine
framework: coreml
role: symbol
role_heading: Case
path: coreml/mlcomputeunits/cpuandneuralengine
---

# MLComputeUnits.cpuAndNeuralEngine

The option you choose to allow the model to use both the CPU and neural engine, but not the GPU.

## Declaration

```swift
case cpuAndNeuralEngine
```

## See Also

### Processing Unit Configurations

- [MLComputeUnits.all](coreml/mlcomputeunits/all.md)
- [MLComputeUnits.cpuOnly](coreml/mlcomputeunits/cpuonly.md)
- [MLComputeUnits.cpuAndGPU](coreml/mlcomputeunits/cpuandgpu.md)
