MPSCNNDropoutGradientState(3) MetalPerformanceShaders.framework MPSCNNDropoutGradientState(3)

MPSCNNDropoutGradientState

#import <MPSCNNDropout.h>

Inherits MPSNNGradientState.


(nonnull instancetype) - init
(nonnull NSData *) - maskData

This depends on Metal.framework. The MPSCNNDropoutGradientState is used to hold the mask used by both MPSCNNDropout forward filter and MPSCNNDropoutGradient backward filter. The MPSCNNDropout forward filter populates the MPSCNNDropoutGradientState object and the MPSCNNDropoutGradient backward filter consumes the state object.

While the mask is stored internally, the mask data is accessible by the user for debugging purposes via an accessor method.

- (nonnull instancetype) init

Reimplemented from MPSState.

- (nonnull NSData*) maskData

Mask data accessor method.

Returns:

An autoreleased NSData object, containing the mask data. The mask data is populated in the -encode call, thus the contents are undefined until you -encode the filter. Use for debugging purposes only.

In order to gaurantee that the mask data is correctly synchronized for CPU side access, it is the application's responsibility to call the [gradientState synchronizeOnCommandBuffer:] method before accessing the mask data.

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3