Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpscnninstancenormalizationgradientstate(3) [mojave man page]

MPSCNNInstanceNormalizationGradientState(3)		 MetalPerformanceShaders.framework	       MPSCNNInstanceNormalizationGradientState(3)

NAME
MPSCNNInstanceNormalizationGradientState SYNOPSIS
#import <MPSCNNInstanceNormalization.h> Inherits MPSNNGradientState. Instance Methods (nonnull instancetype) - initWithDevice:textureDescriptor: (nonnull instancetype) - initWithResource: (nonnull instancetype) - initWithDevice:bufferSize: Class Methods (nonnull instancetype) + temporaryStateWithCommandBuffer:textureDescriptor: (nonnull instancetype) + temporaryStateWithCommandBuffer: (nonnull instancetype) + temporaryStateWithCommandBuffer:bufferSize: Properties MPSCNNInstanceNormalization * instanceNormalization MPSCNNNormalizationGammaAndBetaState * gammaAndBetaState __nonnull id< MTLBuffer > gradientForGamma __nonnull id< MTLBuffer > gradientForBeta Detailed Description This depends on Metal.framework A state to hold information necessary to execute a gradient pass for MPSCNNInstanceNormalization. Gradient states should be created by using the forward kernel's methods. This will ensure that the state captures all information necessary to execute the corresponding gradient pass. Method Documentation - (nonnull instancetype) initWithDevice: (__nonnull id< MTLDevice >) device(size_t) bufferSize Reimplemented from MPSState. - (nonnull instancetype) initWithDevice: (__nonnull id< MTLDevice >) device(MTLTextureDescriptor *__nonnull) descriptor Unavailable. Use MPSCNNInstanceNormalization state creation methods. Reimplemented from MPSState. - (nonnull instancetype) initWithResource: (__nullable id< MTLResource >) resource Unavailable. Use MPSCNNInstanceNormalization state creation methods. Reimplemented from MPSState. + (nonnull instancetype) temporaryStateWithCommandBuffer: (__nonnull id< MTLCommandBuffer >) cmdBuf Create a new autoreleased temporary state object without underlying resource Parameters: cmdBuf The command buffer with which the temporary resource is associated Reimplemented from MPSState. + (nonnull instancetype) temporaryStateWithCommandBuffer: (__nonnull id< MTLCommandBuffer >) cmdBuf(size_t) bufferSize Create a MPSState holding a temporary MTLBuffer Parameters: cmdBuf The command buffer against which the temporary resource is allocated bufferSize The size of the buffer in bytes Reimplemented from MPSState. + (nonnull instancetype) temporaryStateWithCommandBuffer: (__nonnull id< MTLCommandBuffer >) cmdBuf(MTLTextureDescriptor *__nonnull) descriptor Unavailable. Use MPSCNNInstanceNormalization state creation methods. Reimplemented from MPSState. Property Documentation - (MPSCNNNormalizationGammaAndBetaState*) gammaAndBetaState [read], [nonatomic], [retain] - (__nonnull id<MTLBuffer>) gradientForBeta [read], [nonatomic], [assign] - (__nonnull id<MTLBuffer>) gradientForGamma [read], [nonatomic], [assign] - (MPSCNNInstanceNormalization*) instanceNormalization [read], [nonatomic], [retain] The MPSCNNInstanceNormalization object that created this state object. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNInstanceNormalizationGradientState(3)

Check Out this Related Man Page

MPSCNNInstanceNormalization(3)				 MetalPerformanceShaders.framework			    MPSCNNInstanceNormalization(3)

NAME
MPSCNNInstanceNormalization SYNOPSIS
#import <MPSCNNInstanceNormalization.h> Inherits MPSCNNKernel. Instance Methods (nonnull instancetype) - initWithDevice:dataSource: (nonnull instancetype) - initWithDevice: (nullable instancetype) - initWithCoder:device: (void) - reloadDataSource: (void) - reloadGammaAndBetaWithCommandBuffer:gammaAndBetaState: (MPSCNNInstanceNormalizationGradientState *__nullable) - resultStateForSourceImage:sourceStates:destinationImage: Properties float epsilon id< MPSCNNInstanceNormalizationDataSource > dataSource Additional Inherited Members Detailed Description This depends on Metal.framework This kernel normalizes each image, on a per-channel basis, to have zero mean and unit variance: for each image: for each channel: y = (x - mean) * gamma / sqrt(variance + epsilon) + beta; Method Documentation - (nullable instancetype) initWithCoder: (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device NSSecureCoding compatability While the standard NSSecureCoding/NSCoding method -initWithCoder: should work, since the file can't know which device your data is allocated on, we have to guess and may guess incorrectly. To avoid that problem, use initWithCoder:device instead. Parameters: aDecoder The NSCoder subclass with your serialized MPSKernel device The MTLDevice on which to make the MPSKernel Returns: A new MPSCNNInstanceNormalization object, or nil if failure. Reimplemented from MPSCNNKernel. - (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device Use initWithDevice:dataSource instead Reimplemented from MPSCNNKernel. - (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(nonnull id< MPSCNNInstanceNormalizationDataSource >) dataSource Initialize a MPSCNNInstanceNormalization kernel on a device. Parameters: dataSource An object conforming to the MPSCNNInstanceNormalizationDataSource protocol which - (void) reloadDataSource: (__nonnull id< MPSCNNInstanceNormalizationDataSource >) dataSource Reload data using a data source. Parameters: dataSource The data source which will provide the gamma and beta terms to scale and bias the normalized result respectively. - (void) reloadGammaAndBetaWithCommandBuffer: (__nonnull id< MTLCommandBuffer >) commandBuffer(MPSCNNNormalizationGammaAndBetaState *__nonnull) gammaAndBetaState Reload data using new gamma and beta terms contained within an MPSCNNInstanceNormalizationGradientState object. Parameters: commandBuffer The command buffer on which to encode the reload. gammaAndBetaState The state containing the updated weights which are to be reloaded. - (MPSCNNInstanceNormalizationGradientState * __nullable) resultStateForSourceImage: (MPSImage *__nonnull) sourceImage(NSArray< MPSState * > *__nullable) sourceStates(MPSImage *__nonnull) destinationImage Return a MPSCNNInstanceNormalizationGradientState object for the provided source image, source states, and destination image. Reimplemented from MPSCNNKernel. Property Documentation - (id<MPSCNNInstanceNormalizationDataSource>) dataSource [read], [nonatomic], [retain] The data source that the object was initialized with - epsilon [read], [write], [nonatomic], [assign] The epsilon value used to bias the variance when normalizing. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNInstanceNormalization(3)
Man Page