<!--
{
  "availability" : [
    "iOS: 11.0.0 - 15.0.0",
    "iPadOS: 11.0.0 - 15.0.0",
    "macCatalyst: 13.1.0 - 15.0.0",
    "macOS: 10.13.0 - 12.0.0",
    "tvOS: 11.0.0 - 15.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 4.0.0 - 8.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLPredictionOptions/usesCPUOnly",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLPredictionOptions(py)usesCPUOnly"
  },
  "title" : "usesCPUOnly"
}
-->

# usesCPUOnly

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

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)