One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSCNNLoss

class · iOS 11.3+ · SDK 27.1

class MPSCNNLoss

Members (14)

method · iOS 11.3+

encode

TypeScript
encodeCommandBufferSourceImagesLabels(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, labels: Array<MPSCNNLossLabels>): Array<MPSImage>
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [MPSImage], labels: [MPSCNNLossLabels]) -> [MPSImage]
method · iOS 11.3+

encode

TypeScript
encodeCommandBufferSourceImagesLabelsDestinationImages(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, labels: Array<MPSCNNLossLabels>, destinationImage: Array<MPSImage>): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [MPSImage], labels: [MPSCNNLossLabels], destinationImages destinationImage: [MPSImage])
method · iOS 11.3+

encode

TypeScript
encodeCommandBufferSourceImageLabels(commandBuffer: SDKHandle, sourceImage: MPSImage, labels: MPSCNNLossLabels): MPSImage
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, labels: MPSCNNLossLabels) -> MPSImage
method · iOS 11.3+

encode

TypeScript
encodeCommandBufferSourceImageLabelsDestinationImage(commandBuffer: SDKHandle, sourceImage: MPSImage, labels: MPSCNNLossLabels, destinationImage: MPSImage): void
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, labels: MPSCNNLossLabels, destinationImage: MPSImage)
init · iOS 11.3+

init

TypeScript
static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNLoss) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.3+

init

TypeScript
static initDeviceLossDescriptor(device: SDKHandle, lossDescriptor: MPSCNNLossDescriptor): MPSCNNLoss
Swift declaration
init(device: any MTLDevice, lossDescriptor: MPSCNNLossDescriptor)
get · iOS 11.3+

delta

TypeScript
get delta(): number
Swift declaration
var delta: Float { get }
get · iOS 11.3+

epsilon

TypeScript
get epsilon(): number
Swift declaration
var epsilon: Float { get }
get · iOS 11.3+

labelSmoothing

TypeScript
get labelSmoothing(): number
Swift declaration
var labelSmoothing: Float { get }
get · iOS 11.3+

lossType

TypeScript
get lossType(): MPSCNNLossType
Swift declaration
var lossType: MPSCNNLossType { get }
get · iOS 11.3+

numberOfClasses

TypeScript
get numberOfClasses(): number
Swift declaration
var numberOfClasses: Int { get }
get · iOS 14.0+

reduceAcrossBatch

TypeScript
get reduceAcrossBatch(): boolean
Swift declaration
var reduceAcrossBatch: Bool { get }
get · iOS 11.3+

reductionType

TypeScript
get reductionType(): MPSCNNReductionType
Swift declaration
var reductionType: MPSCNNReductionType { get }
get · iOS 11.3+

weight

TypeScript
get weight(): number
Swift declaration
var weight: Float { get }

Skipped declarations

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

MPSCNNLoss.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All MetalPerformanceShaders types →