---
title: "init(descriptor:)"
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/mlcyololosslayer/init(descriptor:)"
---

# init(descriptor:)

Creates a YOLO loss layer with the descriptor you specify.

## Declaration

```swift
convenience init(descriptor lossDescriptor: MLCYOLOLossDescriptor)
```

## Parameters

- `lossDescriptor`: An object used to configure the YOLO loss layer.

## See Also

### Creating YOLO Loss Layers

- [MLCYOLOLossDescriptor](mlcompute/mlcyololossdescriptor.md)
