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

# dataLayout

The named layout of data in the source tensor.

## Declaration

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

## Discussion

Discussion It defines the order of named dimensions (Batch, Channel, Height, Width). The convolution operation uses this to interpret data in the source tensor. For example, if dataLayout is MPSGraphTensorNamedDataLayoutNCHW, frameork interprets data in source tensor as batch x channels x height x width with width as fastest moving dimension.
