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

# init(descriptor:)

Creates an activation layer with the descriptor you specify.

## Declaration

```swift
convenience init(descriptor: MLCActivationDescriptor)
```

## Parameters

- `descriptor`: An object you use to configure the activation layer.

## See Also

### Creating Activation Layers

- [Preconfigured Activation Layers](mlcompute/preconfigured-activation-layers.md)
- [MLCActivationDescriptor](mlcompute/mlcactivationdescriptor.md)
