---
title: "init(operation:)"
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/mlcarithmeticlayer/init(operation:)"
---

# init(operation:)

Creates an arithmetic layer with the operation you specify.

## Declaration

```swift
convenience init(operation: MLCArithmeticOperation)
```

## Parameters

- `operation`: The arithmetic operation.

## See Also

### Creating Arithmetic Layers

- [MLCArithmeticOperation](mlcompute/mlcarithmeticoperation.md)
