Class LSTM
Represents an LSTM recurrent layer. This generates an output tensor by computing a one-layer LSTM (long short-term memory) on an input tensor.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class LSTM : Layer
Constructors
| Name | Description |
|---|---|
| LSTM(string, string[], string[], int, RnnDirection, RnnActivation[], float[], float[], float, bool, RnnLayout) | Initializes and returns an instance of a Long Short-Term Memory Network ( |
Fields
| Name | Description |
|---|---|
| activationAlpha | The alpha values of the activation functions of the LSTM. |
| activationBeta | The beta values of the activation functions of the LSTM. |
| activations | The activation functions of the LSTM as an array of |
| clip | The cell clip threshold of the LSTM. |
| direction | The direction of the LSTM as an |
The number of neurons in the hidden layer of the LSTM. |
|
| inputForget | Whether to forget the input values in the LSTM. If this is |
| layout | The layout of the tensors as an |
Properties
| Name | Description |
|---|---|
| NumDirections | The number of directions of the LSTM inferred from the |
Methods
| Name | Description |
|---|---|
| Execute(Tensor[], ExecutionContext) | Executes the layer using the operations and variables from the If the layer has more than one output, output tensors are saved to variables. |
| ToString() | Returns a string that represents the |