---
title: MLComputePlan.DeviceUsage
framework: coreml
role: symbol
role_heading: Structure
path: coreml/mlcomputeplan-1w21n/deviceusage
---

# MLComputePlan.DeviceUsage

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

## Declaration

```swift
struct DeviceUsage
```

## Topics

### Getting the device usage

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

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting the device usage

- [deviceUsage(for:)](coreml/mlcomputeplan-1w21n/deviceusage(for:).md)
- [deviceUsage(for:)](coreml/mlcomputeplan-1w21n/deviceusage(for:)-9em1q.md)
- [deviceUsage(for:)](coreml/mlcomputeplan-1w21n/deviceusage(for:)-7cdlm.md)
