---
title: MPSCNNNormalizationMeanAndVarianceState
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnnormalizationmeanandvariancestate
---

# MPSCNNNormalizationMeanAndVarianceState

An object that stores mean and variance terms used to execute batch normalization.

## Declaration

```swift
class MPSCNNNormalizationMeanAndVarianceState
```

## Topics

### Initializers

- [init(mean:variance:)](metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/init(mean:variance:).md)

### Instance Properties

- [mean](metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/mean.md)
- [variance](metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/variance.md)

### Type Methods

- [temporaryState(with:numberOfFeatureChannels:)](metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/temporarystate(with:numberoffeaturechannels:).md)

## Relationships

### Inherits From

- [MPSState](metalperformanceshaders/mpsstate.md)

### Conforms To

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

## See Also

### Normalization Layers

- [MPSCNNCrossChannelNormalization](metalperformanceshaders/mpscnncrosschannelnormalization.md)
- [MPSCNNCrossChannelNormalizationGradient](metalperformanceshaders/mpscnncrosschannelnormalizationgradient.md)
- [MPSCNNLocalContrastNormalization](metalperformanceshaders/mpscnnlocalcontrastnormalization.md)
- [MPSCNNLocalContrastNormalizationGradient](metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient.md)
- [MPSCNNSpatialNormalization](metalperformanceshaders/mpscnnspatialnormalization.md)
- [MPSCNNSpatialNormalizationGradient](metalperformanceshaders/mpscnnspatialnormalizationgradient.md)
- [MPSCNNBatchNormalization](metalperformanceshaders/mpscnnbatchnormalization.md)
- [MPSCNNBatchNormalizationGradient](metalperformanceshaders/mpscnnbatchnormalizationgradient.md)
- [MPSCNNBatchNormalizationState](metalperformanceshaders/mpscnnbatchnormalizationstate.md)
- [MPSCNNBatchNormalizationStatistics](metalperformanceshaders/mpscnnbatchnormalizationstatistics.md)
- [MPSCNNBatchNormalizationStatisticsGradient](metalperformanceshaders/mpscnnbatchnormalizationstatisticsgradient.md)
- [MPSCNNInstanceNormalization](metalperformanceshaders/mpscnninstancenormalization.md)
- [MPSCNNInstanceNormalizationGradient](metalperformanceshaders/mpscnninstancenormalizationgradient.md)
- [MPSCNNInstanceNormalizationGradientState](metalperformanceshaders/mpscnninstancenormalizationgradientstate.md)
- [MPSCNNNormalizationGammaAndBetaState](metalperformanceshaders/mpscnnnormalizationgammaandbetastate.md)
