Navigation
API > API/Plugins > API/Plugins/Learning > API/Plugins/Learning/FNeuralNetworkFunction
Description
Evaluate this network for the given instances.
Note: this function takes a lock, so although it can be called from multiple threads if the set of Instances don't overlap, it will not benefit from multi-threading. This is because to use the NNE interface all the instances that need to be evaluated must be gathered and scattered into internal buffers.
| Name | Evaluate |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningNeuralNetwork.h |
| Include Path | #include "LearningNeuralNetwork.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Private/LearningNeuralNetwork.cpp |
void Evaluate
(
TLearningArrayView< 2, float > Output,
const TLearningArrayView< 2, const float > Input,
const FIndexSet Instances
)
Parameters
| Name | Remarks |
|---|---|
| Output | The Output Buffer of shape (<= MaxInstanceNum, OutputSize) |
| Input | The Input Buffer of shape (<= MaxInstanceNum, InputSize) |
| Instances | The instances to evaluate |