---
title: "MLComputeDevice.gpu(_:)"
framework: coreml
role: symbol
role_heading: Case
path: "coreml/mlcomputedevice/gpu(_:)"
---

# MLComputeDevice.gpu(_:)

A device that represents a GPU compute device.

## Declaration

```swift
case gpu(MLGPUComputeDevice)
```

## See Also

### Device types

- [MLComputeDevice.cpu(_:)](coreml/mlcomputedevice/cpu(_:).md)
- [MLComputeDevice.neuralEngine(_:)](coreml/mlcomputedevice/neuralengine(_:).md)
