MPSCNNNormalizationGammaAndBetaState(3) MetalPerformanceShaders.framework MPSCNNNormalizationGammaAndBetaState(3)

MPSCNNNormalizationGammaAndBetaState

#import <MPSCNNNormalizationWeights.h>

Inherits MPSState.


(nonnull instancetype) - initWithGamma:beta:


(nonnull instancetype) + temporaryStateWithCommandBuffer:numberOfFeatureChannels:


__nonnull id< MTLBuffer > gamma
__nonnull id< MTLBuffer > beta

A state which contains gamma and beta terms used to apply a scale and bias in either an MPSCNNInstanceNormalization or MPSCNNBatchNormalization operation.

- (nonnull instancetype) initWithGamma: (__nonnull id< MTLBuffer >) gamma(__nonnull id< MTLBuffer >) beta

Initialize a MPSCNNNormalizationGammaAndBetaState object using values contained in MTLBuffers.

Parameters:

gamma The MTLBuffer containing gamma terms.
beta The MTLBuffer containing beta terms.

Create a temporary MPSCNNNormalizationGammaAndBetaState 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.

- beta [read], [nonatomic], [assign]

A MTLBuffer containing the beta terms.

- gamma [read], [nonatomic], [assign]

A MTLBuffer containing the gamma terms.

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3