---
title: "MLComputeDevice.cpu(_:)"
framework: coreml
role: symbol
role_heading: Case
path: "coreml/mlcomputedevice/cpu(_:)"
---

# MLComputeDevice.cpu(_:)

A device that represents a CPU compute device.

## Declaration

```swift
case cpu(MLCPUComputeDevice)
```

## See Also

### Device types

- [MLComputeDevice.gpu(_:)](coreml/mlcomputedevice/gpu(_:).md)
- [MLComputeDevice.neuralEngine(_:)](coreml/mlcomputedevice/neuralengine(_:).md)
