Navigation
API > API/Plugins > API/Plugins/NeuralMorphModel
An instance of a UNeuralMorphNetwork. The instance holds its own input and output buffers and only reads from the network object it was instanced from. This allows it to be multithreaded.
| Name | UNeuralMorphNetworkInstance |
| Type | class |
| Header File | /Engine/Plugins/Animation/MLDeformer/NeuralMorphModel/Source/NeuralMorphModel/Public/NeuralMorphNetwork.h |
| Include Path | #include "NeuralMorphNetwork.h" |
Syntax
UCLASS (MinimalAPI)
class UNeuralMorphNetworkInstance : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UNeuralMorphNetworkInstance
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| These are required because of the use of TSharedPtr. | NeuralMorphNetwork.h | ||
UNeuralMorphNetworkInstance
(
const FObjectInitializer& ObjectInitializer |
NeuralMorphNetwork.h | ||
UNeuralMorphNetworkInstance
(
FVTableHelper& Helper |
NeuralMorphNetwork.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UNeuralMorphNetworkInstance() |
NeuralMorphNetwork.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GroupInputs | TArray< float > | The input values for the group network. | NeuralMorphNetwork.h | |
| GroupInstance | TSharedPtr< UE::NNE::IModelInstanceCPU > | The inference instance data for the group Neural Network | NeuralMorphNetwork.h | |
| Inputs | TArray< float > | The input values for the main network. | NeuralMorphNetwork.h | |
| MainInstance | TSharedPtr< UE::NNE::IModelInstanceCPU > | The inference instance data for the main Neural Network | NeuralMorphNetwork.h | |
| Network | TObjectPtr< UNeuralMorphNetwork > | The neural network this is an instance of. | NeuralMorphNetwork.h |
|
| Outputs | TArray< float > | The output values. | NeuralMorphNetwork.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArrayView< float > GetGroupInputs () |
Get the inputs for the group MLP. | NeuralMorphNetwork.h | |
TArrayView< const float > GetGroupInputs () |
NeuralMorphNetwork.h | ||
TArrayView< float > GetInputs () |
Get the network input buffer. | NeuralMorphNetwork.h | |
TArrayView< const float > GetInputs () |
NeuralMorphNetwork.h | ||
const UNeuralMorphNetwork & GetNeuralNetwork() |
Get the neural network this is an instance of. | NeuralMorphNetwork.h | |
TArrayView< float > GetOutputs () |
Get the network output buffer. | NeuralMorphNetwork.h | |
TArrayView< const float > GetOutputs () |
NeuralMorphNetwork.h | ||
void Run () |
Run the neural network, performing inference. | NeuralMorphNetwork.h |