---
title: bidirectional
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphlstmdescriptor/bidirectional
---

# bidirectional

A parameter that defines a bidirectional LSTM layer.

## Declaration

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

## Discussion

Discussion If set to YES then the input sequence is traversed in both directions and the two results are concatenated together on the channel-axis. Default value: NO.
