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:

data The per-element loss data. The data must be in floating point format.
layout The data layout of loss data.
size The size of loss data.

Returns:

A valid MPSCNNLossDataDescriptor object or nil, if failure.

- (nonnull instancetype) init

- bytesPerImage [read], [write], [nonatomic], [assign]

Slice bytes of loss data. This parameter specifies the slice bytes of loss data.

- bytesPerRow [read], [write], [nonatomic], [assign]

Row bytes of loss data. This parameter specifies the row bytes of loss data.

- layout [read], [nonatomic], [assign]

Data layout of loss data. See MPSImage.h for more information. This parameter specifies the layout of loss data.

- size [read], [nonatomic], [assign]

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