---
title: device
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphtensordata/device
---

# device

The device of the tensor data.

## Declaration

```swift
var device: MPSGraphDevice { get }
```
