Struct FNNEStateBuffer
Struct FNNEStateBuffer
- Defined in File NNEBuffer.h
struct FNNEStateBufferSource: 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
| Symbol | Details |
|---|---|
FNNEStateBuffer | Constructor that initializes the state buffer. |
Shift | Shifts the state sequence by removing the oldest state and making room for a new one. |
MakeInputBinding | Creates an NNE tensor binding for the entire state buffer as input. |
MakeOutputBinding | Creates 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
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InStateSeqLen | int | Length of the state sequence (default: 0) |
| 2 | — | InStateDimSize | int | Dimensionality 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() constCreates 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() constCreates 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
| Symbol | Details |
|---|---|
StateBuffer | Buffer storing the sequence of state vectors. |
StateSeqLen | Length of the state sequence. |
StateDimSize | Dimensionality of each state vector. |
StateBuffer
TArray<float> StateBufferBuffer storing the sequence of state vectors.
StateSeqLen
int StateSeqLenLength of the state sequence.
StateDimSize
int StateDimSizeDimensionality of each state vector.