---
title: MPSGraphImToColOpDescriptor
framework: metalperformanceshadersgraph
role: symbol
role_heading: Class
path: metalperformanceshadersgraph/mpsgraphimtocolopdescriptor
---

# MPSGraphImToColOpDescriptor

The class that defines the parameters for an image to column or column to image operation.

## Declaration

```swift
class MPSGraphImToColOpDescriptor
```

## Overview

Overview Use this descriptor with the following MPSGraph methods: imToCol(_:descriptor:name:) colToIm(_:outputShape:descriptor:name:)

## Topics

### Initializers

- [init(kernelWidth:kernelHeight:strideInX:strideInY:dilationRateInX:dilationRateInY:dataLayout:)](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/init(kernelwidth:kernelheight:strideinx:strideiny:dilationrateinx:dilationrateiny:datalayout:).md)
- [init(kernelWidth:kernelHeight:strideInX:strideInY:dilationRateInX:dilationRateInY:paddingLeft:paddingRight:paddingTop:paddingBottom:dataLayout:)](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/init(kernelwidth:kernelheight:strideinx:strideiny:dilationrateinx:dilationrateiny:paddingleft:paddingright:paddingtop:paddingbottom:datalayout:).md)

### Instance Properties

- [dataLayout](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/datalayout.md)
- [dilationRateInX](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/dilationrateinx.md)
- [dilationRateInY](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/dilationrateiny.md)
- [kernelHeight](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/kernelheight.md)
- [kernelWidth](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/kernelwidth.md)
- [paddingBottom](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/paddingbottom.md)
- [paddingLeft](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/paddingleft.md)
- [paddingRight](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/paddingright.md)
- [paddingTop](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/paddingtop.md)
- [strideInX](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/strideinx.md)
- [strideInY](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/strideiny.md)

### Instance Methods

- [setExplicitPaddingWithPaddingLeft(_:paddingRight:paddingTop:paddingBottom:)](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor/setexplicitpaddingwithpaddingleft(_:paddingright:paddingtop:paddingbottom:).md)

## Relationships

### Inherits From

- [MPSGraphObject](metalperformanceshadersgraph/mpsgraphobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Classes

- [MPSGraph](metalperformanceshadersgraph/mpsgraph.md)
- [MPSGraphCompilationDescriptor](metalperformanceshadersgraph/mpsgraphcompilationdescriptor.md)
- [MPSGraphConvolution2DOpDescriptor](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor.md)
- [MPSGraphConvolution3DOpDescriptor](metalperformanceshadersgraph/mpsgraphconvolution3dopdescriptor.md)
- [MPSGraphCreateSparseOpDescriptor](metalperformanceshadersgraph/mpsgraphcreatesparseopdescriptor.md)
- [MPSGraphDepthwiseConvolution2DOpDescriptor](metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor.md)
- [MPSGraphDepthwiseConvolution3DOpDescriptor](metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor.md)
- [MPSGraphDevice](metalperformanceshadersgraph/mpsgraphdevice.md)
- [MPSGraphExecutable](metalperformanceshadersgraph/mpsgraphexecutable.md)
- [MPSGraphExecutableExecutionDescriptor](metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor.md)
- [MPSGraphExecutableSerializationDescriptor](metalperformanceshadersgraph/mpsgraphexecutableserializationdescriptor.md)
- [MPSGraphExecutionDescriptor](metalperformanceshadersgraph/mpsgraphexecutiondescriptor.md)
- [MPSGraphFFTDescriptor](metalperformanceshadersgraph/mpsgraphfftdescriptor.md)
- [MPSGraphGRUDescriptor](metalperformanceshadersgraph/mpsgraphgrudescriptor.md)
- [MPSGraphLSTMDescriptor](metalperformanceshadersgraph/mpsgraphlstmdescriptor.md)
