---
title: activation
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphsinglegaternndescriptor/activation
---

# activation

A parameter that defines the activation function to use with the RNN operation.

## Declaration

```swift
var activation: MPSGraphRNNActivation { get set }
```

## Discussion

Discussion Default value: MPSGraphRNNActivationRelu.
