One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSCNNLossLabels

class · iOS 11.3+ · SDK 27.1

class MPSCNNLossLabels

Members (6)

init · iOS 11.3+

init

TypeScript
static initDeviceLabelsDescriptor(device: SDKHandle, labelsDescriptor: MPSCNNLossDataDescriptor): MPSCNNLossLabels
Swift declaration
convenience init(device: any MTLDevice, labelsDescriptor: MPSCNNLossDataDescriptor)
init · iOS 11.3+

init

TypeScript
static initDeviceLossImageSizeLabelsDescriptorWeightsDescriptor(device: SDKHandle, lossImageSize: _Metal_MTLSize, labelsDescriptor: MPSCNNLossDataDescriptor, weightsDescriptor?: (MPSCNNLossDataDescriptor) | null): MPSCNNLossLabels
Swift declaration
init(device: any MTLDevice, lossImageSize: MTLSize, labelsDescriptor: MPSCNNLossDataDescriptor, weightsDescriptor: MPSCNNLossDataDescriptor?)
init · iOS 13.0+

init

TypeScript
static initDeviceLossImageSizeLabelsImageWeightsImage(device: SDKHandle, lossImageSize: _Metal_MTLSize, labelsImage: MPSImage, weightsImage?: (MPSImage) | null): MPSCNNLossLabels
Swift declaration
init(device: any MTLDevice, lossImageSize: MTLSize, labelsImage: MPSImage, weightsImage: MPSImage?)
method · iOS 11.3+

labelsImage

TypeScript
labelsImage(): MPSImage
Swift declaration
func labelsImage() -> MPSImage
method · iOS 11.3+

lossImage

TypeScript
lossImage(): MPSImage
Swift declaration
func lossImage() -> MPSImage
method · iOS 11.3+

weightsImage

TypeScript
weightsImage(): MPSImage
Swift declaration
func weightsImage() -> MPSImage

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPSCNNLossLabels.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All MetalPerformanceShaders types →