---
title: Preconfigured Activation Layers
framework: ML Compute
role: collectionGroup
role_heading: API Collection
path: mlcompute/preconfigured-activation-layers
---

# Preconfigured Activation Layers

Obtain a preconfigured activation layer with common behavior.

## Overview

Overview Use a factory to receive a preconfigured activation layer for various activation types.

## Topics

### 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)
- [softPlus(beta:)](mlcompute/mlcactivationlayer/softplus(beta:).md)
- [softShrink(a:)](mlcompute/mlcactivationlayer/softshrink(a:).md)
- [threshold(_:replacement:)](mlcompute/mlcactivationlayer/threshold(_:replacement:).md)

### Factory Properties

- [absolute](mlcompute/mlcactivationlayer/absolute.md)
- [celu](mlcompute/mlcactivationlayer/celu.md)
- [elu](mlcompute/mlcactivationlayer/elu.md)
- [gelu](mlcompute/mlcactivationlayer/gelu.md)
- [hardShrink](mlcompute/mlcactivationlayer/hardshrink.md)
- [hardSigmoid](mlcompute/mlcactivationlayer/hardsigmoid.md)
- [hardSwish](mlcompute/mlcactivationlayer/hardswish.md)
- [leakyReLU](mlcompute/mlcactivationlayer/leakyrelu.md)
- [logSigmoid](mlcompute/mlcactivationlayer/logsigmoid.md)
- [relu](mlcompute/mlcactivationlayer/relu.md)
- [relu6](mlcompute/mlcactivationlayer/relu6.md)
- [selu](mlcompute/mlcactivationlayer/selu.md)
- [sigmoid](mlcompute/mlcactivationlayer/sigmoid.md)
- [softPlus](mlcompute/mlcactivationlayer/softplus.md)
- [softShrink](mlcompute/mlcactivationlayer/softshrink.md)
- [softSign](mlcompute/mlcactivationlayer/softsign.md)
- [tanh](mlcompute/mlcactivationlayer/tanh.md)
- [tanhShrink](mlcompute/mlcactivationlayer/tanhshrink.md)

## See Also

### Creating Activation Layers

- [init(descriptor:)](mlcompute/mlcactivationlayer/init(descriptor:).md)
- [MLCActivationDescriptor](mlcompute/mlcactivationdescriptor.md)
