---
title: device
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcgraph/device
---

# device

The device you’ll use for compiling and executing a graph.

## Declaration

```swift
var device: MLCDevice? { get }
```

## See Also

### Inspecting Graphs

- [sourceTensors(for:)](mlcompute/mlcgraph/sourcetensors(for:).md)
- [resultTensors(for:)](mlcompute/mlcgraph/resulttensors(for:).md)
- [layers](mlcompute/mlcgraph/layers.md)
- [summarizedDOTDescription](mlcompute/mlcgraph/summarizeddotdescription.md)
