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

# relu()

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

## Declaration

```swift
func relu() -> BNNSGraph.Builder.Tensor<T>
```
