MPSCNNDropoutGradientState(3) MetalPerformanceShaders.framework MPSCNNDropoutGradientState(3)
NAME
MPSCNNDropoutGradientState
SYNOPSIS
#import <MPSCNNDropout.h>
Inherits MPSNNGradientState.
Instance Methods
(nonnull instancetype) - init
(nonnull NSData *) - maskData
Additional Inherited Members
Detailed Description
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.
Method Documentation
- (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.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNDropoutGradientState(3)