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

# leakyReLU(alpha:)

Adds a Leaky Rectified Linear Unit (ReLU) activation operation to the current graph.

## Declaration

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

## Parameters

- `alpha`: The alpha value.
