MPSCNNNormalizationMeanAndVarianceState(3) MetalPerformanceShaders.framework MPSCNNNormalizationMeanAndVarianceState(3)

MPSCNNNormalizationMeanAndVarianceState

#import <MPSCNNBatchNormalization.h>

Inherits MPSState.


(nonnull instancetype) - initWithMean:variance:


(nonnull instancetype) + temporaryStateWithCommandBuffer:numberOfFeatureChannels:


__nonnull id< MTLBuffer > mean
__nonnull id< MTLBuffer > variance

A state which contains mean and variance terms used to apply a normalization in a MPSCNNBatchNormalization operation.

- (nonnull instancetype) initWithMean: (__nonnull id< MTLBuffer >) mean(__nonnull id< MTLBuffer >) variance

Initialize a MPSCNNNormalizationMeanAndVarianceState object using values contained in MTLBuffers.

Parameters:

mean The MTLBuffer containing mean terms.
variance The MTLBuffer containing variance terms.

Create a temporary MPSCNNNormalizationMeanAndVarianceState suitable for a normalization operation on images containing no more than the specified number of feature channels.

Parameters:

commandBuffer The command buffer on which the temporary state will be used.
numberOfFeatureChannels The number of feature channels used to size the state.

- mean [read], [nonatomic], [assign]

A MTLBuffer containing the mean terms.

- variance [read], [nonatomic], [assign]

A MTLBuffer containing the variance terms.

Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3