---
title: "softPlus(beta:)"
framework: ML Compute
role: symbol
role_heading: Type Method
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcactivationlayer/softplus(beta:)"
---

# softPlus(beta:)

Creates an instance of a soft plus activation layer using the beta value you specify for the soft plus formation.

## Declaration

```swift
class func softPlus(beta: Float) -> Self
```

## Parameters

- `beta`: The beta value for the softplus formation.

## Return Value

Return Value A new MLCActivationLayer instance.

## Discussion

Discussion The softPlus(beta:) factory type method creates an activation descriptor using init(type:a:b:), where type = MLCActivationType.softPlus, a = 1.0 / beta, and b = beta, and passes that descriptor to init(descriptor:).

## See Also

### Factory Methods

- [celu(a:)](mlcompute/mlcactivationlayer/celu(a:).md)
- [clamp(min:max:)](mlcompute/mlcactivationlayer/clamp(min:max:).md)
- [elu(a:)](mlcompute/mlcactivationlayer/elu(a:).md)
- [hardShrink(a:)](mlcompute/mlcactivationlayer/hardshrink(a:).md)
- [leakyReLU(negativeSlope:)](mlcompute/mlcactivationlayer/leakyrelu(negativeslope:).md)
- [linear(scale:bias:)](mlcompute/mlcactivationlayer/linear(scale:bias:).md)
- [relun(a:b:)](mlcompute/mlcactivationlayer/relun(a:b:).md)
- [softShrink(a:)](mlcompute/mlcactivationlayer/softshrink(a:).md)
- [threshold(_:replacement:)](mlcompute/mlcactivationlayer/threshold(_:replacement:).md)
