MetalPerformanceShaders · IOS API REFERENCE
MPSCNNLoss
class · iOS 11.3+ · SDK 27.1
class MPSCNNLoss
Members (14)
method · iOS 11.3+encode
TypeScriptencodeCommandBufferSourceImagesLabels(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, labels: Array<MPSCNNLossLabels>): Array<MPSImage>
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [MPSImage], labels: [MPSCNNLossLabels]) -> [MPSImage]
method · iOS 11.3+encode
TypeScriptencodeCommandBufferSourceImagesLabelsDestinationImages(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, labels: Array<MPSCNNLossLabels>, destinationImage: Array<MPSImage>): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImages sourceImage: [MPSImage], labels: [MPSCNNLossLabels], destinationImages destinationImage: [MPSImage])
method · iOS 11.3+encode
TypeScriptencodeCommandBufferSourceImageLabels(commandBuffer: SDKHandle, sourceImage: MPSImage, labels: MPSCNNLossLabels): MPSImage
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, labels: MPSCNNLossLabels) -> MPSImage
method · iOS 11.3+encode
TypeScriptencodeCommandBufferSourceImageLabelsDestinationImage(commandBuffer: SDKHandle, sourceImage: MPSImage, labels: MPSCNNLossLabels, destinationImage: MPSImage): void
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, labels: MPSCNNLossLabels, destinationImage: MPSImage)
init · iOS 11.3+init
TypeScriptstatic initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNLoss) | null
Swift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.3+init
TypeScriptstatic initDeviceLossDescriptor(device: SDKHandle, lossDescriptor: MPSCNNLossDescriptor): MPSCNNLoss
Swift declarationinit(device: any MTLDevice, lossDescriptor: MPSCNNLossDescriptor)
get · iOS 11.3+delta
TypeScriptget delta(): number
Swift declarationvar delta: Float { get }
get · iOS 11.3+epsilon
TypeScriptget epsilon(): number
Swift declarationvar epsilon: Float { get }
get · iOS 11.3+labelSmoothing
TypeScriptget labelSmoothing(): number
Swift declarationvar labelSmoothing: Float { get }
get · iOS 11.3+lossType
TypeScriptget lossType(): MPSCNNLossType
Swift declarationvar lossType: MPSCNNLossType { get }
get · iOS 11.3+numberOfClasses
TypeScriptget numberOfClasses(): number
Swift declarationvar numberOfClasses: Int { get }
get · iOS 14.0+reduceAcrossBatch
TypeScriptget reduceAcrossBatch(): boolean
Swift declarationvar reduceAcrossBatch: Bool { get }
get · iOS 11.3+reductionType
TypeScriptget reductionType(): MPSCNNReductionType
Swift declarationvar reductionType: MPSCNNReductionType { get }
get · iOS 11.3+weight
TypeScriptget weight(): number
Swift declarationvar 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 →