---
title: "elu(alpha:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/elu(alpha:)"
---

# elu(alpha:)

Adds an Exponential Linear Unit (ELU) activation operation to the current graph.

## Declaration

```swift
func elu(alpha: Float) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

- `alpha`: The alpha value.
