---
title: anchorBoxes
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcyololossdescriptor/anchorboxes
---

# anchorBoxes

Data that contains the width and height for all the anchor boxes.

## Declaration

```swift
var anchorBoxes: Data { get }
```

## Discussion

Discussion This data has anchorBoxCount pairs of floating-point values that represent the width and height of each anchor box.

## See Also

### Inspecting YOLO Loss Descriptors

- [anchorBoxCount](mlcompute/mlcyololossdescriptor/anchorboxcount.md)
- [maximumIOUForObjectAbsence](mlcompute/mlcyololossdescriptor/maximumiouforobjectabsence.md)
- [minimumIOUForObjectPresence](mlcompute/mlcyololossdescriptor/minimumiouforobjectpresence.md)
- [scaleClassLoss](mlcompute/mlcyololossdescriptor/scaleclassloss.md)
- [scaleObjectConfidenceLoss](mlcompute/mlcyololossdescriptor/scaleobjectconfidenceloss.md)
- [scaleNoObjectConfidenceLoss](mlcompute/mlcyololossdescriptor/scalenoobjectconfidenceloss.md)
- [scaleSpatialPositionLoss](mlcompute/mlcyololossdescriptor/scalespatialpositionloss.md)
- [scaleSpatialSizeLoss](mlcompute/mlcyololossdescriptor/scalespatialsizeloss.md)
- [shouldRescore](mlcompute/mlcyololossdescriptor/shouldrescore.md)
