<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCDeviceType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:@E@MLCDeviceType"
  },
  "title" : "MLCDeviceType"
}
-->

# MLCDeviceType

A device type for execution of a neural network.

```
enum MLCDeviceType
```

## Topics

### Device Types

[`MLCDeviceType.any`](/documentation/MLCompute/MLCDeviceType/any)

A device type that represents either the CPU or GPU.

[`MLCDeviceType.cpu`](/documentation/MLCompute/MLCDeviceType/cpu)

A device type that represents the CPU.

[`MLCDeviceType.gpu`](/documentation/MLCompute/MLCDeviceType/gpu)

A device type that represents the GPU.

[`MLCDeviceType.ane`](/documentation/MLCompute/MLCDeviceType/ane)

A device type that represents the Apple Neural Engine.

[`MLCDeviceTypeCount`](/documentation/MLCompute/MLCDeviceType/MLCDeviceTypeCount)

A number that represents the number of device types.



---

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)