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

# training

A parameter that enables the GRU layer to 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.
