<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLComputePlan-1w21n/DeviceUsage",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "s:6CoreML13MLComputePlanC11DeviceUsageV"
  },
  "title" : "MLComputePlan.DeviceUsage"
}
-->

# MLComputePlan.DeviceUsage

The anticipated compute devices that would be used for executing a layer/operation.

```
struct DeviceUsage
```

## Topics

### Getting the device usage

[`let preferred: MLComputeDevice`](/documentation/CoreML/MLComputePlan-1w21n/DeviceUsage/preferred)

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

[`let supported: [MLComputeDevice]`](/documentation/CoreML/MLComputePlan-1w21n/DeviceUsage/supported)

The compute devices that can execute the layer/operation.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)