Navigation
API > API/Plugins > API/Plugins/Learning > API/Plugins/Learning/FNeuralNetworkFunction
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningNeuralNetwork.h |
| Include | #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
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| Output | The Output Buffer of shape (<= MaxInstanceNum, OutputSize) |
| Input | The Input Buffer of shape (<= MaxInstanceNum, InputSize) |
| Instances | The instances to evaluate |