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

# hardSigmoid(alpha:beta:)

Adds a hard sigmoid activation operation to the current graph.

## Declaration

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

## Parameters

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