---
title: MLPredictionOptions
framework: coreml
role: symbol
role_heading: Class
path: coreml/mlpredictionoptions
---

# MLPredictionOptions

The options available when making a prediction.

## Declaration

```swift
class MLPredictionOptions
```

## Topics

### Getting features

- [outputBackings](coreml/mlpredictionoptions/outputbackings.md)

### Restricting computation to the CPU

- [usesCPUOnly](coreml/mlpredictionoptions/usescpuonly.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Making predictions

- [prediction(from:)](coreml/mlmodel/prediction(from:).md)
- [prediction(from:options:)](coreml/mlmodel/prediction(from:options:).md)
- [predictions(fromBatch:)](coreml/mlmodel/predictions(frombatch:).md)
- [predictions(from:options:)](coreml/mlmodel/predictions(from:options:).md)
- [prediction(from:using:)](coreml/mlmodel/prediction(from:using:).md)
- [prediction(from:using:options:)](coreml/mlmodel/prediction(from:using:options:).md)
