Navigation
API > API/Plugins > API/Plugins/Learning
Neural Network Inference Object
| Name | FNeuralNetworkInference |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningNeuralNetwork.h |
| Include Path | #include "LearningNeuralNetwork.h" |
Syntax
struct FNeuralNetworkInference
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNeuralNetworkInference
(
UE::NNE::IModelCPU& InModel, |
Constructs a new network inference object. | LearningNeuralNetwork.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| InputSize | int32 | LearningNeuralNetwork.h | ||
| MaxBatchSize | int32 | LearningNeuralNetwork.h | ||
| ModelInstances | TArray< TSharedPtr< NNE::IModelInstanceCPU >, TInlineAllocator< 64 > > | LearningNeuralNetwork.h | ||
| OutputSize | int32 | LearningNeuralNetwork.h | ||
| Settings | FNeuralNetworkInferenceSettings | LearningNeuralNetwork.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Evaluate
(
TLearningArrayView< 2, float > Output, |
Evaluate this network. | LearningNeuralNetwork.h | |
int32 GetInputSize() |
LearningNeuralNetwork.h | ||
int32 GetMaxBatchSize() |
LearningNeuralNetwork.h | ||
int32 GetOutputSize() |
LearningNeuralNetwork.h | ||
void ReloadModelInstances
(
NNE::IModelCPU& Model, |
This function will re-build the internal Model Instances used for multi-threading. It should be called whenever the given Model is updated. | LearningNeuralNetwork.h |