Struct FNNEBindingCreator
Struct FNNEBindingCreator
- Defined in File NNEBindingCreator.h
Inheritance Relationships
Base Type
public FNNEBufferVisitor(Struct FNNEBufferVisitor)
struct FNNEBindingCreator : public FNNEBufferVisitorSource: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h
Dependencies: FNNEBoxBuffer, FNNEDictBuffer, FNNEDiscreteBuffer, FNNEMultiBinaryBuffer, FNNEMultiDiscreteBuffer, FNNEPointBuffer, FSpace
Visitor that creates NNE tensor bindings from buffers.
This visitor traverses buffer structures and creates corresponding NNE tensor bindings that can be used for neural network inference, matching buffers to tensor descriptors.
Public Functions
| Symbol | Details |
|---|---|
FNNEBindingCreator | Constructor that initializes the binding creator. |
~FNNEBindingCreator | — |
operator() | Visit operation for dictionary buffers. |
operator() | Visit operation for box buffers. |
operator() | Visit operation for multi-binary buffers. |
operator() | Visit operation for discrete buffers. |
operator() | Visit operation for multi-discrete buffers. |
FNNEBindingCreator
inline FNNEBindingCreator(TInstancedStruct<FNNEPointBuffer> &InBuffer, TConstArrayView<UE::NNE::FTensorDesc> InTensorDescs, TArray<UE::NNE::FTensorBindingCPU> &OutBindings)Constructor that initializes the binding creator.
Parameters
-
InBuffer – [in] The buffer to create bindings from
-
InTensorDescs – [in] The tensor descriptors from the model
-
OutBindings – [out] The array to populate with tensor bindings
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InBuffer | TInstancedStruct< FNNEPointBuffer > & | The buffer to create bindings from |
| 2 | — | InTensorDescs | TConstArrayView< UE::NNE::FTensorDesc > | The tensor descriptors from the model |
| 3 | — | OutBindings | TArray< UE::NNE::FTensorBindingCPU > & | The array to populate with tensor bindings |
Attributes: inline
Source: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h
~FNNEBindingCreator
virtual ~FNNEBindingCreator() = defaultAttributes: virtual
Source: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h
operator()
virtual void operator()(const FNNEDictBuffer &InBuffer) overrideVisit operation for dictionary buffers.
Parameters
InBuffer – [in] The dictionary buffer to create bindings from
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InBuffer | const FNNEDictBuffer & | The dictionary buffer to create bindings from |
Attributes: virtual
Source: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h
Implementation: Source/Schola/NNE/Private/NNEUtils/NNEBindingCreator.cpp
operator()
virtual void operator()(const FNNEBoxBuffer &InBuffer) overrideVisit operation for box buffers.
Parameters
InBuffer – [in] The box buffer to create bindings from
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InBuffer | const FNNEDictBuffer & | The dictionary buffer to create bindings from |
Attributes: virtual
Source: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h
Implementation: Source/Schola/NNE/Private/NNEUtils/NNEBindingCreator.cpp
operator()
virtual void operator()(const FNNEMultiBinaryBuffer &InBuffer) overrideVisit operation for multi-binary buffers.
Parameters
InBuffer – [in] The multi-binary buffer to create bindings from
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InBuffer | const FNNEDictBuffer & | The dictionary buffer to create bindings from |
Attributes: virtual
Source: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h
Implementation: Source/Schola/NNE/Private/NNEUtils/NNEBindingCreator.cpp
operator()
virtual void operator()(const FNNEDiscreteBuffer &InBuffer) overrideVisit operation for discrete buffers.
Parameters
InBuffer – [in] The discrete buffer to create bindings from
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InBuffer | const FNNEDictBuffer & | The dictionary buffer to create bindings from |
Attributes: virtual
Source: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h
Implementation: Source/Schola/NNE/Private/NNEUtils/NNEBindingCreator.cpp
operator()
virtual void operator()(const FNNEMultiDiscreteBuffer &InBuffer) overrideVisit operation for multi-discrete buffers.
Parameters
InBuffer – [in] The multi-discrete buffer to create bindings from
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InBuffer | const FNNEDictBuffer & | The dictionary buffer to create bindings from |
Attributes: virtual
Source: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h
Implementation: Source/Schola/NNE/Private/NNEUtils/NNEBindingCreator.cpp
Public Members
| Symbol | Details |
|---|---|
Buffer | Reference to the buffer to create bindings from. |
Bindings | Array of tensor bindings to populate. |
bError | Error flag indicating if binding creation failed. |
Index | Current tensor index being processed. |
TensorDescs | Array of tensor descriptors from the neural network model. |
Buffer
TInstancedStruct<FNNEPointBuffer> &BufferReference to the buffer to create bindings from.
Bindings
TArray<UE::NNE::FTensorBindingCPU> &BindingsArray of tensor bindings to populate.
bError
bool bError = falseError flag indicating if binding creation failed.
Index
int Index = 0Current tensor index being processed.
TensorDescs
TConstArrayView<UE::NNE::FTensorDesc> TensorDescsArray of tensor descriptors from the neural network model.
Public Static Functions
| Symbol | Details |
|---|---|
CreateBindings | Static utility function to create tensor bindings from a buffer. |
CreateBindings
static inline boolCreateBindings(const TInstancedStruct<FSpace> &InSpace, TInstancedStruct<FNNEPointBuffer> &InBuffer, TConstArrayView<UE::NNE::FTensorDesc> InTensorDescs, TArray<UE::NNE::FTensorBindingCPU> &OutBindings)Static utility function to create tensor bindings from a buffer.
Parameters
-
InSpace – [in] The space definition (currently unused but kept for consistency)
-
InBuffer – [in] The buffer to create bindings from
-
InTensorDescs – [in] The tensor descriptors from the model
-
OutBindings – [out] The array to populate with tensor bindings
Returns:
true if an error occurred, false on success
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InSpace | const TInstancedStruct< FSpace > & | The space definition (currently unused but kept for consistency) |
| 2 | — | InBuffer | TInstancedStruct< FNNEPointBuffer > & | The buffer to create bindings from |
| 3 | — | InTensorDescs | TConstArrayView< UE::NNE::FTensorDesc > | The tensor descriptors from the model |
| 4 | — | OutBindings | TArray< UE::NNE::FTensorBindingCPU > & | The array to populate with tensor bindings |
Attributes: inline, static
Source: Source/Schola/NNE/Public/NNEUtils/NNEBindingCreator.h