---
title: usesCPUOnly
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mlpredictionoptions/usescpuonly
---

# usesCPUOnly

A Boolean value that indicates whether a prediction is computed using only the CPU.

## Declaration

```swift
var usesCPUOnly: Bool { get set }
```

## Discussion

Discussion Your model should be restricted to the CPU if it might run in the background or if your app has other GPU intensive tasks.
