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

# MLPredictionOptions

The options available when making a prediction.

```
class MLPredictionOptions
```

## Topics

### Getting features

[`outputBackings`](/documentation/CoreML/MLPredictionOptions/outputBackings)

A dictionary of feature names and client-allocated buffers.

### Restricting computation to the CPU

[`usesCPUOnly`](/documentation/CoreML/MLPredictionOptions/usesCPUOnly)

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



---

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)