---
title: BNNSLayerFlags
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/bnnslayerflags
---

# BNNSLayerFlags

Options that control the behavior of a long short-term memory (LSTM) layer.

## Declaration

```swift
struct BNNSLayerFlags
```

## Topics

### LSTM Layer Flags

- [rawValue](accelerate/bnnslayerflags/rawvalue.md)
- [init(_:)](accelerate/bnnslayerflags/init(_:).md)
- [init(rawValue:)](accelerate/bnnslayerflags/init(rawvalue:).md)
- [BNNSLayerFlagsLSTMBidirectional](accelerate/bnnslayerflagslstmbidirectional.md)
- [BNNSLayerFlagsLSTMDefaultActivations](accelerate/bnnslayerflagslstmdefaultactivations.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)

## See Also

### Recurrent layers

- [Using Long Short-Term Memory Layers (LSTM)](accelerate/using-long-short-term-memory-layers-lstm.md)
- [BNNSLSTMDataDescriptor](accelerate/bnnslstmdatadescriptor.md)
- [BNNSLSTMGateDescriptor](accelerate/bnnslstmgatedescriptor.md)
- [BNNSLayerParametersLSTM](accelerate/bnnslayerparameterslstm.md)
- [BNNSComputeLSTMTrainingCacheCapacity(_:)](accelerate/bnnscomputelstmtrainingcachecapacity(_:).md)
- [BNNSDirectApplyLSTMBatchTrainingCaching(_:_:_:_:)](accelerate/bnnsdirectapplylstmbatchtrainingcaching(_:_:_:_:).md)
- [BNNSDirectApplyLSTMBatchBackward(_:_:_:_:_:)](accelerate/bnnsdirectapplylstmbatchbackward(_:_:_:_:_:).md)
