---
title: dataLayout
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/datalayout
---

# dataLayout

The property that defines the layout of source or output  tensor. e.g. batch x channels x width x height for NCHW layout

## Declaration

```swift
var dataLayout: MPSGraphTensorNamedDataLayout { get set }
```
