MPSCNNLossDataDescriptor(3) | MetalPerformanceShaders.framework | MPSCNNLossDataDescriptor(3) |
MPSCNNLossDataDescriptor
#import <MPSCNNLoss.h>
Inherits NSObject, and <NSCopying>.
(nonnull instancetype) - init
(nullable MPSCNNLossDataDescriptor *) +
cnnLossDataDescriptorWithData:layout:size:
MPSDataLayout layout
MTLSize size
NSUInteger bytesPerRow
NSUInteger bytesPerImage
This depends on Metal.framework. The MPSCNNLossDataDescriptor specifies a loss data descriptor. The same descriptor can be used to initialize both the labels and the optional weights data.
Make a descriptor loss data. The bytesPerRow and bytesPerImage are automatically calculated assuming a dense array. If it is not a dense array, adjust bytesPerRow and bytesPerImage to the right value by changing properties.
Parameters:
Returns:
Slice bytes of loss data. This parameter specifies the slice bytes of loss data.
Row bytes of loss data. This parameter specifies the row bytes of loss data.
Data layout of loss data. See MPSImage.h for more information. This parameter specifies the layout of loss data.
Size of loss data: (width, height, feature channels}. This parameter specifies the size of loss data.
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |