---
title: "scaledTanh(alpha:beta:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/scaledtanh(alpha:beta:)"
---

# scaledTanh(alpha:beta:)

Adds a scaled tanh activation operation to the current graph.

## Declaration

```swift
func scaledTanh(alpha: Float, beta: Float) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

- `alpha`: The alpha value.
- `beta`: The beta value.
