---
title: MPSCNNConvolutionDescriptor
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnconvolutiondescriptor
---

# MPSCNNConvolutionDescriptor

A description of the attributes of a convolution kernel.

## Declaration

```swift
class MPSCNNConvolutionDescriptor
```

## Overview

Overview You use an MPSCNNConvolutionDescriptor object to describe the properties of an MPSCNNConvolution kernel such as its size, pixel format and CPU cache mode.

## Topics

### Type Methods

- [init(coder:)](metalperformanceshaders/mpscnnconvolutiondescriptor/init(coder:).md)
- [init(kernelWidth:kernelHeight:inputFeatureChannels:outputFeatureChannels:)](metalperformanceshaders/mpscnnconvolutiondescriptor/init(kernelwidth:kernelheight:inputfeaturechannels:outputfeaturechannels:).md)
- [init(kernelWidth:kernelHeight:inputFeatureChannels:outputFeatureChannels:neuronFilter:)](metalperformanceshaders/mpscnnconvolutiondescriptor/init(kernelwidth:kernelheight:inputfeaturechannels:outputfeaturechannels:neuronfilter:).md)

### Instance Properties

- [groups](metalperformanceshaders/mpscnnconvolutiondescriptor/groups.md)
- [inputFeatureChannels](metalperformanceshaders/mpscnnconvolutiondescriptor/inputfeaturechannels.md)
- [kernelHeight](metalperformanceshaders/mpscnnconvolutiondescriptor/kernelheight.md)
- [kernelWidth](metalperformanceshaders/mpscnnconvolutiondescriptor/kernelwidth.md)
- [outputFeatureChannels](metalperformanceshaders/mpscnnconvolutiondescriptor/outputfeaturechannels.md)
- [strideInPixelsX](metalperformanceshaders/mpscnnconvolutiondescriptor/strideinpixelsx.md)
- [strideInPixelsY](metalperformanceshaders/mpscnnconvolutiondescriptor/strideinpixelsy.md)
- [neuron](metalperformanceshaders/mpscnnconvolutiondescriptor/neuron.md)
- [dilationRateX](metalperformanceshaders/mpscnnconvolutiondescriptor/dilationratex.md)
- [dilationRateY](metalperformanceshaders/mpscnnconvolutiondescriptor/dilationratey.md)
- [neuronParameterA()](metalperformanceshaders/mpscnnconvolutiondescriptor/neuronparametera().md)
- [neuronParameterB()](metalperformanceshaders/mpscnnconvolutiondescriptor/neuronparameterb().md)
- [neuronType()](metalperformanceshaders/mpscnnconvolutiondescriptor/neurontype().md)
- [fusedNeuronDescriptor](metalperformanceshaders/mpscnnconvolutiondescriptor/fusedneurondescriptor.md)

### Instance Methods

- [encode(with:)](metalperformanceshaders/mpscnnconvolutiondescriptor/encode(with:).md)
- [setBatchNormalizationParametersForInferenceWithMean(_:variance:gamma:beta:epsilon:)](metalperformanceshaders/mpscnnconvolutiondescriptor/setbatchnormalizationparametersforinferencewithmean(_:variance:gamma:beta:epsilon:).md)
- [setNeuronToPReLUWithParametersA(_:)](metalperformanceshaders/mpscnnconvolutiondescriptor/setneurontopreluwithparametersa(_:).md)
- [setNeuronType(_:parameterA:parameterB:)](metalperformanceshaders/mpscnnconvolutiondescriptor/setneurontype(_:parametera:parameterb:).md)

### Type Properties

- [supportsSecureCoding](metalperformanceshaders/mpscnnconvolutiondescriptor/supportssecurecoding.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [MPSCNNDepthWiseConvolutionDescriptor](metalperformanceshaders/mpscnndepthwiseconvolutiondescriptor.md)
- [MPSCNNSubPixelConvolutionDescriptor](metalperformanceshaders/mpscnnsubpixelconvolutiondescriptor.md)

### Conforms To

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

## See Also

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpscnnconvolution/init(coder:device:).md)
- [init(device:convolutionDescriptor:kernelWeights:biasTerms:flags:)](metalperformanceshaders/mpscnnconvolution/init(device:convolutiondescriptor:kernelweights:biasterms:flags:).md)
- [MPSCNNConvolutionFlags](metalperformanceshaders/mpscnnconvolutionflags.md)
- [init(device:weights:)](metalperformanceshaders/mpscnnconvolution/init(device:weights:).md)
- [MPSCNNConvolutionDataSource](metalperformanceshaders/mpscnnconvolutiondatasource.md)
