---
title: MPSMatrixBatchNormalizationGradient
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsmatrixbatchnormalizationgradient
---

# MPSMatrixBatchNormalizationGradient

A batch normalization gradient kernel that operates on matrices.

## Declaration

```swift
class MPSMatrixBatchNormalizationGradient
```

## Topics

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/init(coder:device:).md)
- [init(device:)](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/init(device:).md)

### Instance Properties

- [epsilon](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/epsilon.md)
- [sourceInputFeatureChannels](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/sourceinputfeaturechannels.md)
- [sourceNumberOfFeatureVectors](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/sourcenumberoffeaturevectors.md)

### Instance Methods

- [copy(with:device:)](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/copy(with:device:).md)
- [encode(to:gradientMatrix:inputMatrix:mean:varianceVector:gammaVector:betaVector:resultGradientForDataMatrix:resultGradientForGammaVector:resultGradientForBetaVector:)](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/encode(to:gradientmatrix:inputmatrix:mean:variancevector:gammavector:betavector:resultgradientfordatamatrix:resultgradientforgammavector:resultgradientforbetavector:).md)
- [neuronParameterA()](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/neuronparametera().md)
- [neuronParameterB()](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/neuronparameterb().md)
- [neuronParameterC()](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/neuronparameterc().md)
- [neuronType()](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/neurontype().md)
- [setNeuronType(_:parameterA:parameterB:parameterC:)](metalperformanceshaders/mpsmatrixbatchnormalizationgradient/setneurontype(_:parametera:parameterb:parameterc:).md)

## Relationships

### Inherits From

- [MPSMatrixBinaryKernel](metalperformanceshaders/mpsmatrixbinarykernel.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

### Matrix Normalization Operations

- [MPSMatrixBatchNormalization](metalperformanceshaders/mpsmatrixbatchnormalization.md)
