Skip to content

Struct FNNEStateBuffer

Struct FNNEStateBuffer

  • Defined in File NNEBuffer.h
struct FNNEStateBuffer

Source: Source/Schola/NNE/Public/NNEUtils/NNEBuffer.h Buffer for storing recurrent neural network state across time steps.

This buffer maintains state information for sequence-based neural network models, storing a sequence of state vectors that can be shifted and updated.


Public Functions

SymbolDetails
FNNEStateBufferConstructor that initializes the state buffer.
ShiftShifts the state sequence by removing the oldest state and making room for a new one.
MakeInputBindingCreates an NNE tensor binding for the entire state buffer as input.
MakeOutputBindingCreates an NNE tensor binding for the last state vector as output.

FNNEStateBuffer

inline FNNEStateBuffer(int InStateSeqLen = 0, int InStateDimSize = 0)

Constructor that initializes the state buffer.

Parameters

  • InStateSeqLen – [in] Length of the state sequence

  • InStateDimSize – [in] Dimensionality of each state vector

#DirectionNameTypeDescription
1InStateSeqLenintLength of the state sequence (default: 0)
2InStateDimSizeintDimensionality of each state vector (default: 0)

Attributes: inline

Source: Source/Schola/NNE/Public/NNEUtils/NNEBuffer.h

Shift

inline void Shift()

Shifts the state sequence by removing the oldest state and making room for a new one.

Moves all state vectors one position earlier in the sequence, discarding the first state and preparing the last position for a new state.

Attributes: inline

Source: Source/Schola/NNE/Public/NNEUtils/NNEBuffer.h

MakeInputBinding

inline UE::NNE::FTensorBindingCPU MakeInputBinding() const

Creates an NNE tensor binding for the entire state buffer as input.

Returns:

Tensor binding containing the full state sequence

Attributes: inline, const

Source: Source/Schola/NNE/Public/NNEUtils/NNEBuffer.h

MakeOutputBinding

inline UE::NNE::FTensorBindingCPU MakeOutputBinding() const

Creates an NNE tensor binding for the last state vector as output.

Returns:

Tensor binding pointing to the most recent state position

Attributes: inline, const

Source: Source/Schola/NNE/Public/NNEUtils/NNEBuffer.h


Public Members

SymbolDetails
StateBufferBuffer storing the sequence of state vectors.
StateSeqLenLength of the state sequence.
StateDimSizeDimensionality of each state vector.

StateBuffer

TArray<float> StateBuffer

Buffer storing the sequence of state vectors.


StateSeqLen

int StateSeqLen

Length of the state sequence.


StateDimSize

int StateDimSize

Dimensionality of each state vector.