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

# training

A parameter that makes the RNN layer support training.

## Declaration

```swift
var training: Bool { get set }
```

## Discussion

Discussion If set to YES then the layer will produce training state tensor as a secondary output. Default value: NO.
