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

# tanh()

Adds an element-wise hyperbolic tangent operation to the current graph.

## Declaration

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