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

# gelu()

Adds a Gaussian Error Linear Unit (GELU) activation operation to the current graph.

## Declaration

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