---
title: MPSGraphConvolution2DOpDescriptor
framework: metalperformanceshadersgraph
role: symbol
role_heading: Class
path: metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor
---

# MPSGraphConvolution2DOpDescriptor

A class that describes the properties of a 2D-convolution operator.

## Declaration

```swift
class MPSGraphConvolution2DOpDescriptor
```

## Overview

Overview Use an instance of this class is to add a 2D-convolution operator with the desired properties to the graph.

## Topics

### Initializers

- [init(strideInX:strideInY:dilationRateInX:dilationRateInY:groups:paddingLeft:paddingRight:paddingTop:paddingBottom:paddingStyle:dataLayout:weightsLayout:)](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/init(strideinx:strideiny:dilationrateinx:dilationrateiny:groups:paddingleft:paddingright:paddingtop:paddingbottom:paddingstyle:datalayout:weightslayout:).md)
- [init(strideInX:strideInY:dilationRateInX:dilationRateInY:groups:paddingStyle:dataLayout:weightsLayout:)](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/init(strideinx:strideiny:dilationrateinx:dilationrateiny:groups:paddingstyle:datalayout:weightslayout:).md)

### Instance Properties

- [dataLayout](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/datalayout.md)
- [dilationRateInX](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/dilationrateinx.md)
- [dilationRateInY](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/dilationrateiny.md)
- [groups](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/groups.md)
- [paddingBottom](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/paddingbottom.md)
- [paddingLeft](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/paddingleft.md)
- [paddingRight](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/paddingright.md)
- [paddingStyle](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/paddingstyle.md)
- [paddingTop](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/paddingtop.md)
- [strideInX](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/strideinx.md)
- [strideInY](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/strideiny.md)
- [weightsLayout](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/weightslayout.md)

### Instance Methods

- [setExplicitPaddingWithPaddingLeft(_:paddingRight:paddingTop:paddingBottom:)](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/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)
- [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)
- [MPSGraphImToColOpDescriptor](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor.md)
- [MPSGraphLSTMDescriptor](metalperformanceshadersgraph/mpsgraphlstmdescriptor.md)
