.TH "MPSCNNInstanceNormalizationGradientState" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSCNNInstanceNormalizationGradientState .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSNNGradientState\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:textureDescriptor:\fP" .br .ti -1c .RI "(nonnull instancetype) \- \fBinitWithResource:\fP" .br .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:bufferSize:\fP" .br .in -1c .SS "Class Methods" .in +1c .ti -1c .RI "(nonnull instancetype) + \fBtemporaryStateWithCommandBuffer:textureDescriptor:\fP" .br .ti -1c .RI "(nonnull instancetype) + \fBtemporaryStateWithCommandBuffer:\fP" .br .ti -1c .RI "(nonnull instancetype) + \fBtemporaryStateWithCommandBuffer:bufferSize:\fP" .br .in -1c .SS "Properties" .in +1c .ti -1c .RI "\fBMPSCNNInstanceNormalization\fP * \fBinstanceNormalization\fP" .br .ti -1c .RI "__nullable id< MTLBuffer > \fBgamma\fP" .br .ti -1c .RI "__nullable id< MTLBuffer > \fBbeta\fP" .br .ti -1c .RI "__nonnull id< MTLBuffer > \fBgradientForGamma\fP" .br .ti -1c .RI "__nonnull id< MTLBuffer > \fBgradientForBeta\fP" .br .in -1c .SH "Detailed Description" .PP This depends on Metal\&.framework \fBA\fP state to hold information necessary to execute a gradient pass for \fBMPSCNNInstanceNormalization\fP\&. 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\&. .SH "Method Documentation" .PP .SS "\- (nonnull instancetype) initWithDevice: (__nonnull id< MTLDevice >) device(size_t) bufferSize" .PP Reimplemented from \fBMPSState\fP\&. .SS "\- (nonnull instancetype) initWithDevice: (__nonnull id< MTLDevice >) device(MTLTextureDescriptor *__nonnull) descriptor" Unavailable\&. Use \fBMPSCNNInstanceNormalization\fP state creation methods\&. .PP Reimplemented from \fBMPSState\fP\&. .SS "\- (nonnull instancetype) initWithResource: (__nullable id< MTLResource >) resource" Unavailable\&. Use \fBMPSCNNInstanceNormalization\fP state creation methods\&. .PP Reimplemented from \fBMPSState\fP\&. .SS "+ (nonnull instancetype) temporaryStateWithCommandBuffer: (__nonnull id< MTLCommandBuffer >) cmdBuf" Create a new autoreleased temporary state object without underlying resource .PP \fBParameters:\fP .RS 4 \fIcmdBuf\fP The command buffer with which the temporary resource is associated .RE .PP .PP Reimplemented from \fBMPSState\fP\&. .SS "+ (nonnull instancetype) \fBtemporaryStateWithCommandBuffer:\fP (__nonnull id< MTLCommandBuffer >) cmdBuf(size_t) bufferSize" Create a \fBMPSState\fP holding a temporary MTLBuffer .PP \fBParameters:\fP .RS 4 \fIcmdBuf\fP The command buffer against which the temporary resource is allocated .br \fIbufferSize\fP The size of the buffer in bytes .RE .PP .PP Reimplemented from \fBMPSState\fP\&. .SS "+ (nonnull instancetype) \fBtemporaryStateWithCommandBuffer:\fP (__nonnull id< MTLCommandBuffer >) cmdBuf(MTLTextureDescriptor *__nonnull) descriptor" Unavailable\&. Use \fBMPSCNNInstanceNormalization\fP state creation methods\&. .PP Reimplemented from \fBMPSState\fP\&. .SH "Property Documentation" .PP .SS "\- (The MTLBuffer containing the gradient values for) beta\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" Return an MTLBuffer object with the state's current beta values\&.\&. .SS "\- (The MTLBuffer containing the gradient values for) gamma\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" Return an MTLBuffer object with the state's current gamma values\&. .SS "\- (__nonnull id) gradientForBeta\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" .SS "\- (__nonnull id) gradientForGamma\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" .SS "\- (\fBMPSCNNInstanceNormalization\fP*) instanceNormalization\fC [read]\fP, \fC [nonatomic]\fP, \fC [retain]\fP" The \fBMPSCNNInstanceNormalization\fP object that created this state object\&. .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.