Navigation
API > API/Plugins > API/Plugins/Learning
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningNeuralNetworkData
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningNeuralNetwork.h |
| Include | #include "LearningNeuralNetwork.h" |
Syntax
UCLASS (BlueprintType)
class ULearningNeuralNetworkData : public UObject
Remarks
Neural Network Data Object
This is the UObject which contains the actual data used by a Neural Network. It stores the raw FileData used to construct the network using NNE, as well as the input and output sizes and a compatibility hash that can be used to quickly check if two networks may be compatible in terms of inputs and outputs.
Internally this also stores the various things required to map between NNE style inference and the style of inference used in Learning via FNeuralNetwork and FNeuralNetworkInference.
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Gets the compatibility hash. | ||
| int32 | GetInputSize () |
Gets the network input size. | |
| TSharedPtr< UE::Learning::FNeuralNetwork > & | GetNetwork () |
Get the FNeuralNetwork object that can be used to do inference. | |
| int32 | Gets the network output size. | ||
| int32 | Number of bytes required to save or load a snapshot of this network. | ||
| void | Initialize the ULearningNeuralNetworkData object given some input and output sizes as well as a compatibility hash and FileData. | ||
| void | InitFrom
(
const ULearningNeuralNetworkData* OtherNetworkData |
Initialize this network from another ULearningNeuralNetworkData object. | |
| bool | IsEmpty () |
If this network is empty or not. | |
| bool | LoadFromSnapshot
(
const TArrayView< const uint8 > InBytes |
Load a snapshot of this network from the given array of bytes. | |
| void | SaveToSnapshot
(
TArrayView< uint8 > OutBytes |
Save a snapshot of this network to the given array of bytes. |