---
title: "init(anchorBoxes:anchorBoxCount:)"
framework: ML Compute
role: symbol
role_heading: Initializer
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcyololossdescriptor/init(anchorboxes:anchorboxcount:)"
---

# init(anchorBoxes:anchorBoxCount:)

Creates a YOLO loss filter descriptor with the anchor box data and number of anchor boxes you specify.

## Declaration

```swift
convenience init(anchorBoxes: Data, anchorBoxCount: Int)
```

## Parameters

- `anchorBoxes`: The anchor box data.
- `anchorBoxCount`: The number of anchor boxes.
