---
title: weightsLayout
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphconvolution3dopdescriptor/weightslayout
---

# weightsLayout

The named layout of data in the weights tensor.

## Declaration

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

## Discussion

Discussion It defines the order of named dimensions (Output channels, Input channels, Kernel depth, Kernel height, Kernel width). The convolution operation uses this to interpret data in the weights tensor. For example, if weightsLayout is MPSGraphTensorNamedDataLayoutOIDHW, frameork interprets data in weights tensor as outputChannels x inputChannels x kernelDepth x kernelHeight x kernelWidth with kernelWidth as fastest moving dimension.
