---
title: cpuOnly
framework: coreai
role: symbol
role_heading: Type Property
path: coreai/specializationoptions/cpuonly
---

# cpuOnly

Options that restrict compute to the CPU only.

## Declaration

```swift
static let cpuOnly: SpecializationOptions
```

## Discussion

Discussion The resulting specialized model only uses the CPU during inference. Because all operations support the CPU, no fallback to other compute units occurs.

## See Also

### Using preset options

- [default](coreai/specializationoptions/default.md)
