.TH "MPSCNNLossDataDescriptor" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSCNNLossDataDescriptor .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits NSObject, and \&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinit\fP" .br .in -1c .SS "Class Methods" .in +1c .ti -1c .RI "(nullable \fBMPSCNNLossDataDescriptor\fP *) + \fBcnnLossDataDescriptorWithData:layout:size:\fP" .br .in -1c .SS "Properties" .in +1c .ti -1c .RI "\fBMPSDataLayout\fP \fBlayout\fP" .br .ti -1c .RI "MTLSize \fBsize\fP" .br .ti -1c .RI "NSUInteger \fBbytesPerRow\fP" .br .ti -1c .RI "NSUInteger \fBbytesPerImage\fP" .br .in -1c .SH "Detailed Description" .PP This depends on Metal\&.framework\&. The \fBMPSCNNLossDataDescriptor\fP specifies a loss data descriptor\&. The same descriptor can be used to initialize both the labels and the optional weights data\&. .SH "Method Documentation" .PP .SS "+ (nullable \fBMPSCNNLossDataDescriptor\fP*) cnnLossDataDescriptorWithData: (NSData *__nonnull) data(\fBMPSDataLayout\fP) layout(MTLSize) size" 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\&. .PP \fBParameters:\fP .RS 4 \fIdata\fP The per-element loss data\&. The data must be in floating point format\&. .br \fIlayout\fP The data layout of loss data\&. .br \fIsize\fP The size of loss data\&. .RE .PP \fBReturns:\fP .RS 4 \fBA\fP valid \fBMPSCNNLossDataDescriptor\fP object or nil, if failure\&. .RE .PP .SS "\- (nonnull instancetype) init " .SH "Property Documentation" .PP .SS "\- bytesPerImage\fC [read]\fP, \fC [write]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" Slice bytes of loss data\&. This parameter specifies the slice bytes of loss data\&. .SS "\- bytesPerRow\fC [read]\fP, \fC [write]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" Row bytes of loss data\&. This parameter specifies the row bytes of loss data\&. .SS "\- layout\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" Data layout of loss data\&. See MPSImage\&.h for more information\&. This parameter specifies the layout of loss data\&. .SS "\- size\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" Size of loss data: (width, height, feature channels}\&. This parameter specifies the size of loss data\&. .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.