---
title: preferred
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mlcomputeplan-1w21n/deviceusage/preferred
---

# preferred

The compute device that the framework prefers to execute the layer/operation.

## Declaration

```swift
let preferred: MLComputeDevice
```

## See Also

### Getting the device usage

- [supported](coreml/mlcomputeplan-1w21n/deviceusage/supported.md)
