---
title: MLCDeviceType
framework: ML Compute
role: symbol
role_heading: Enumeration
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcdevicetype
---

# MLCDeviceType

A device type for execution of a neural network.

## Declaration

```swift
enum MLCDeviceType
```

## Topics

### Device Types

- [MLCDeviceType.any](mlcompute/mlcdevicetype/any.md)
- [MLCDeviceType.cpu](mlcompute/mlcdevicetype/cpu.md)
- [MLCDeviceType.gpu](mlcompute/mlcdevicetype/gpu.md)
- [MLCDeviceType.ane](mlcompute/mlcdevicetype/ane.md)

### Initializers

- [init(rawValue:)](mlcompute/mlcdevicetype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating Devices

- [init(type:)](mlcompute/mlcdevice/init(type:).md)
- [init(type:selectsMultipleComputeDevices:)](mlcompute/mlcdevice/init(type:selectsmultiplecomputedevices:).md)
- [init(gpuDevices:)](mlcompute/mlcdevice/init(gpudevices:)-4mj85.md)
- [cpu()](mlcompute/mlcdevice/cpu().md)
- [gpu()](mlcompute/mlcdevice/gpu().md)
- [ane()](mlcompute/mlcdevice/ane().md)
