One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSCNNYOLOLoss

class · iOS 12.0+ · SDK 27.1

class MPSCNNYOLOLoss

Members (21)

method · iOS 12.0+

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 12.0+

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 12.0+

encode

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

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 12.0+

init

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

init

TypeScript
static initDeviceLossDescriptor(device: SDKHandle, lossDescriptor: MPSCNNYOLOLossDescriptor): MPSCNNYOLOLoss
Swift declaration
init(device: any MTLDevice, lossDescriptor: MPSCNNYOLOLossDescriptor)
get · iOS 12.0+

anchorBoxes

TypeScript
get anchorBoxes(): ArrayBuffer
Swift declaration
var anchorBoxes: Data { get }
get · iOS 12.0+

lossClasses

TypeScript
get lossClasses(): MPSCNNLoss
Swift declaration
var lossClasses: MPSCNNLoss { get }
get · iOS 12.0+

lossConfidence

TypeScript
get lossConfidence(): MPSCNNLoss
Swift declaration
var lossConfidence: MPSCNNLoss { get }
get · iOS 12.0+

lossWH

TypeScript
get lossWH(): MPSCNNLoss
Swift declaration
var lossWH: MPSCNNLoss { get }
get · iOS 12.0+

lossXY

TypeScript
get lossXY(): MPSCNNLoss
Swift declaration
var lossXY: MPSCNNLoss { get }
get · iOS 12.0+

maxIOUForObjectAbsence

TypeScript
get maxIOUForObjectAbsence(): number
Swift declaration
var maxIOUForObjectAbsence: Float { get }
get · iOS 12.0+

minIOUForObjectPresence

TypeScript
get minIOUForObjectPresence(): number
Swift declaration
var minIOUForObjectPresence: Float { get }
get · iOS 12.0+

numberOfAnchorBoxes

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

reduceAcrossBatch

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

reductionType

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

scaleClass

TypeScript
get scaleClass(): number
Swift declaration
var scaleClass: Float { get }
get · iOS 12.0+

scaleNoObject

TypeScript
get scaleNoObject(): number
Swift declaration
var scaleNoObject: Float { get }
get · iOS 12.0+

scaleObject

TypeScript
get scaleObject(): number
Swift declaration
var scaleObject: Float { get }
get · iOS 12.0+

scaleWH

TypeScript
get scaleWH(): number
Swift declaration
var scaleWH: Float { get }
get · iOS 12.0+

scaleXY

TypeScript
get scaleXY(): number
Swift declaration
var 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 →