Navigation
API > API/Runtime > API/Runtime/NNE
Inheritance Hierarchy
- UObject
- UNNEModelData
References
| Module | NNE |
| Header | /Engine/Source/Runtime/NNE/Public/NNEModelData.h |
| Include | #include "NNEModelData.h" |
Syntax
UCLASS (BlueprintType, Category="NNE")
class UNNEModelData : public UObject
Remarks
This class represents assets that store neural network model data.
Neural network models typically consist of a graph of operations and corresponding parameters as e.g. weights. UNNEModelData assets store such model data as imported e.g. by the UNNEModelDataFactory class. An INNERuntime object retrieved by UE::NNE::GetRuntime
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clears the FileData and the FileType. | ||
| void | Clears the ModelData. | ||
| TConstArrayView< uint8 > | GetAdditionalFileData
(
const FString& Key |
Get read only access to AdditionalFileData. | |
| void | GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
||
| TConstArrayView< uint8 > | GetFileData () |
Get read only access to FileData. | |
| FGuid | GetFileId () |
Get the FGuid identifying the FileData. | |
| FString | GetFileType () |
Get the type of data inside FileData. | |
| TSharedPtr< UE::NNE::FSharedModelData > | GetModelData
(
const FString& RuntimeName |
Get the cached (editor) or cooked (game) optimized model data for a given runtime. | |
| TArrayView< const FString > | In editor: Get the target runtimes this model data will be cooked for. | ||
| void | Init
(
const FString& Type, |
Initialize the model data with a copy of the data inside Buffer. | |
| void | Serialize
(
FArchive& Ar |
||
| void | SetTargetRuntimes
(
TArrayView< const FString > RuntimeNames |
Set the target runtimes this model data will be cooked for. An empty list means all runtimes. |