MPSCNNNormalizationMeanAndVarianceState(3)

NAME
MPSCNNNormalizationMeanAndVarianceState

SYNOPSIS

#import <MPSCNNBatchNormalization.h>

Inherits MPSState.

  Instance Methods
(nonnull instancetype) - initWithMean:variance:

  Class Methods
(nonnull instancetype) + temporaryStateWithCommandBuffer:numberOfFeatureChannels:

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

Detailed Description

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

Method Documentation

  - (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.

  + (nonnull instancetype) temporaryStateWithCommandBuffer: (__nonnull id< MTLCommandBuffer >) commandBuffer(NSUInteger) numberOfFeatureChannels
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.

Property Documentation

  - mean [read], [nonatomic], [assign]
A MTLBuffer containing the mean terms.

  - variance [read], [nonatomic], [assign]
A MTLBuffer containing the variance terms.

Author

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