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

# relu6()

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

## Declaration

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