---
title: MPSMatrixBatchNormalization
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsmatrixbatchnormalization
---

# MPSMatrixBatchNormalization

A batch normalization kernel that operates on matrices.

## Declaration

```swift
class MPSMatrixBatchNormalization
```

## Topics

### Initializers

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

### Instance Properties

- [computeStatistics](metalperformanceshaders/mpsmatrixbatchnormalization/computestatistics.md)
- [epsilon](metalperformanceshaders/mpsmatrixbatchnormalization/epsilon.md)
- [sourceInputFeatureChannels](metalperformanceshaders/mpsmatrixbatchnormalization/sourceinputfeaturechannels.md)
- [sourceNumberOfFeatureVectors](metalperformanceshaders/mpsmatrixbatchnormalization/sourcenumberoffeaturevectors.md)

### Instance Methods

- [copy(with:device:)](metalperformanceshaders/mpsmatrixbatchnormalization/copy(with:device:).md)
- [encode(commandBuffer:inputMatrix:meanVector:varianceVector:gammaVector:betaVector:resultMatrix:)](metalperformanceshaders/mpsmatrixbatchnormalization/encode(commandbuffer:inputmatrix:meanvector:variancevector:gammavector:betavector:resultmatrix:).md)
- [neuronParameterA()](metalperformanceshaders/mpsmatrixbatchnormalization/neuronparametera().md)
- [neuronParameterB()](metalperformanceshaders/mpsmatrixbatchnormalization/neuronparameterb().md)
- [neuronParameterC()](metalperformanceshaders/mpsmatrixbatchnormalization/neuronparameterc().md)
- [neuronType()](metalperformanceshaders/mpsmatrixbatchnormalization/neurontype().md)
- [setNeuronType(_:parameterA:parameterB:parameterC:)](metalperformanceshaders/mpsmatrixbatchnormalization/setneurontype(_:parametera:parameterb:parameterc:).md)

## Relationships

### Inherits From

- [MPSMatrixUnaryKernel](metalperformanceshaders/mpsmatrixunarykernel.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

- [MPSMatrixBatchNormalizationGradient](metalperformanceshaders/mpsmatrixbatchnormalizationgradient.md)
