Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpsnnstatenode(3) [mojave man page]

MPSNNStateNode(3)					 MetalPerformanceShaders.framework					 MPSNNStateNode(3)

NAME
MPSNNStateNode SYNOPSIS
#import <MPSNNGraphNodes.h> Inherits NSObject. Inherited by MPSNNBinaryGradientStateNode, MPSNNGradientStateNode, and MPSNNLabelsNode. Instance Methods (nonnull instancetype) - init Properties id< MPSHandle > handle BOOL exportFromGraph BOOL synchronizeResource Detailed Description A placeholder node denoting the position in the graph of a MPSState object Some filters need additional information about an image in order to function. For example a max-pooling gradient filter needs to know which position the max result came from in the original pooling filter in order to select the right data for gradient computation. In other cases, state may be moved into a MPSState object in order to keep the filter itself immutable. The MPSState object typically encapsulates one or more MTLResource objects. Method Documentation - (nonnull instancetype) init Property Documentation - (BOOL) exportFromGraph [read], [write], [nonatomic], [assign] Tag a state node for view later Most state nodes are private to the graph. These alias memory heavily and consequently generally have invalid state when the graph exits. When exportFromGraph = YES, the image is preserved and made available through the [MPSNNGraph encode... resultStates:... list. CAUTION: exporting an state from a graph prevents MPS from recycling memory. It will nearly always cause the amount of memory used by the graph to increase by the size of the state. There will probably be a performance regression accordingly. This feature should generally be used only when the node is needed as an input for further work and recomputing it is prohibitively costly. Default: NO - (id<MPSHandle>) handle [read], [write], [nonatomic], [retain] MPS resource identification See MPSHandle protocol reference. Default: nil - (BOOL) synchronizeResource [read], [write], [nonatomic], [assign] Set to true to cause the resource to be synchronized with the CPU Ignored on non-MacOS. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSNNStateNode(3)

Check Out this Related 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)
Man Page