docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Layer
    LSTM
    Inherited Members
    Layer.inputs
    Layer.name
    Layer.outputs
    Layer.flags
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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 (LSTM) recurrent layer.

    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 RnnActivation.

    clip

    The cell clip threshold of the LSTM.

    direction

    The direction of the LSTM as an RnnDirection.

    hiddenSize

    The number of neurons in the hidden layer of the LSTM.

    inputForget

    Whether to forget the input values in the LSTM. If this is false the input and forget gates are coupled.

    layout

    The layout of the tensors as an RnnLayout.

    Properties

    Name Description
    NumDirections

    The number of directions of the LSTM inferred from the direction.

    Methods

    Name Description
    Execute(Tensor[], ExecutionContext)

    Executes the layer using the operations and variables from the ExecutionContext and returns the output tensor.

    If the layer has more than one output, output tensors are saved to variables.

    ToString()

    Returns a string that represents the Layer.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)