MetalPerformanceShaders · IOS API REFERENCE
MPSCNNYOLOLoss
class · iOS 12.0+ · SDK 27.1
class MPSCNNYOLOLoss
Members (21)
method · iOS 12.0+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 12.0+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 12.0+encode
TypeScriptencodeCommandBufferSourceImageLabels(commandBuffer: SDKHandle, sourceImage: MPSImage, labels: MPSCNNLossLabels): MPSImage
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, labels: MPSCNNLossLabels) -> MPSImage
method · iOS 12.0+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 12.0+init
TypeScriptstatic initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNYOLOLoss) | null
Swift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 12.0+init
TypeScriptstatic initDeviceLossDescriptor(device: SDKHandle, lossDescriptor: MPSCNNYOLOLossDescriptor): MPSCNNYOLOLoss
Swift declarationinit(device: any MTLDevice, lossDescriptor: MPSCNNYOLOLossDescriptor)
get · iOS 12.0+anchorBoxes
TypeScriptget anchorBoxes(): ArrayBuffer
Swift declarationvar anchorBoxes: Data { get }
get · iOS 12.0+lossClasses
TypeScriptget lossClasses(): MPSCNNLoss
Swift declarationvar lossClasses: MPSCNNLoss { get }
get · iOS 12.0+lossConfidence
TypeScriptget lossConfidence(): MPSCNNLoss
Swift declarationvar lossConfidence: MPSCNNLoss { get }
get · iOS 12.0+lossWH
TypeScriptget lossWH(): MPSCNNLoss
Swift declarationvar lossWH: MPSCNNLoss { get }
get · iOS 12.0+lossXY
TypeScriptget lossXY(): MPSCNNLoss
Swift declarationvar lossXY: MPSCNNLoss { get }
get · iOS 12.0+maxIOUForObjectAbsence
TypeScriptget maxIOUForObjectAbsence(): number
Swift declarationvar maxIOUForObjectAbsence: Float { get }
get · iOS 12.0+minIOUForObjectPresence
TypeScriptget minIOUForObjectPresence(): number
Swift declarationvar minIOUForObjectPresence: Float { get }
get · iOS 12.0+numberOfAnchorBoxes
TypeScriptget numberOfAnchorBoxes(): number
Swift declarationvar numberOfAnchorBoxes: Int { get }
get · iOS 14.0+reduceAcrossBatch
TypeScriptget reduceAcrossBatch(): boolean
Swift declarationvar reduceAcrossBatch: Bool { get }
get · iOS 12.0+reductionType
TypeScriptget reductionType(): MPSCNNReductionType
Swift declarationvar reductionType: MPSCNNReductionType { get }
get · iOS 12.0+scaleClass
TypeScriptget scaleClass(): number
Swift declarationvar scaleClass: Float { get }
get · iOS 12.0+scaleNoObject
TypeScriptget scaleNoObject(): number
Swift declarationvar scaleNoObject: Float { get }
get · iOS 12.0+scaleObject
TypeScriptget scaleObject(): number
Swift declarationvar scaleObject: Float { get }
get · iOS 12.0+scaleWH
TypeScriptget scaleWH(): number
Swift declarationvar scaleWH: Float { get }
get · iOS 12.0+scaleXY
TypeScriptget scaleXY(): number
Swift declarationvar scaleXY: Float { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSCNNYOLOLoss.init()
inherited init: cannot prove legal (class declares 1 custom initializer)
All MetalPerformanceShaders types →