MPSCNNNormalizationGammaAndBetaState(3)

NAME
MPSCNNNormalizationGammaAndBetaState

SYNOPSIS

#import <MPSCNNNormalizationWeights.h>

Inherits MPSState.

  Instance Methods
(nonnull instancetype) - initWithGamma:beta:

  Class Methods
(nonnull instancetype) + temporaryStateWithCommandBuffer:numberOfFeatureChannels:

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

Detailed Description

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

Method Documentation

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

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

Property Documentation

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

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

Author

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