---
title: MPSCNNYOLOLossDescriptor
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnyololossdescriptor
---

# MPSCNNYOLOLossDescriptor

An object that specifies properties used by a YOLO loss kernel.

## Declaration

```swift
class MPSCNNYOLOLossDescriptor
```

## Topics

### Instance Properties

- [anchorBoxes](metalperformanceshaders/mpscnnyololossdescriptor/anchorboxes.md)
- [classesLossDescriptor](metalperformanceshaders/mpscnnyololossdescriptor/classeslossdescriptor.md)
- [confidenceLossDescriptor](metalperformanceshaders/mpscnnyololossdescriptor/confidencelossdescriptor.md)
- [maxIOUForObjectAbsence](metalperformanceshaders/mpscnnyololossdescriptor/maxiouforobjectabsence.md)
- [minIOUForObjectPresence](metalperformanceshaders/mpscnnyololossdescriptor/miniouforobjectpresence.md)
- [numberOfAnchorBoxes](metalperformanceshaders/mpscnnyololossdescriptor/numberofanchorboxes.md)
- [reduceAcrossBatch](metalperformanceshaders/mpscnnyololossdescriptor/reduceacrossbatch.md)
- [reductionType](metalperformanceshaders/mpscnnyololossdescriptor/reductiontype.md)
- [rescore](metalperformanceshaders/mpscnnyololossdescriptor/rescore.md)
- [scaleClass](metalperformanceshaders/mpscnnyololossdescriptor/scaleclass.md)
- [scaleNoObject](metalperformanceshaders/mpscnnyololossdescriptor/scalenoobject.md)
- [scaleObject](metalperformanceshaders/mpscnnyololossdescriptor/scaleobject.md)
- [scaleWH](metalperformanceshaders/mpscnnyololossdescriptor/scalewh.md)
- [scaleXY](metalperformanceshaders/mpscnnyololossdescriptor/scalexy.md)
- [whLossDescriptor](metalperformanceshaders/mpscnnyololossdescriptor/whlossdescriptor.md)
- [xyLossDescriptor](metalperformanceshaders/mpscnnyololossdescriptor/xylossdescriptor.md)

### Type Methods

- [cnnLossDescriptor(withXYLossType:whLossType:confidenceLossType:classesLossType:reductionType:anchorBoxes:numberOfAnchorBoxes:)](metalperformanceshaders/mpscnnyololossdescriptor/cnnlossdescriptor(withxylosstype:whlosstype:confidencelosstype:classeslosstype:reductiontype:anchorboxes:numberofanchorboxes:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Loss Layers

- [MPSCNNLoss](metalperformanceshaders/mpscnnloss.md)
- [MPSCNNLossDataDescriptor](metalperformanceshaders/mpscnnlossdatadescriptor.md)
- [MPSCNNLossDescriptor](metalperformanceshaders/mpscnnlossdescriptor.md)
- [MPSCNNLossLabels](metalperformanceshaders/mpscnnlosslabels.md)
- [MPSCNNYOLOLoss](metalperformanceshaders/mpscnnyololoss.md)
