Navigation
API > API/Plugins > API/Plugins/NNE
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UNNEModelData
References
| Module | NNE |
| Header | /Engine/Plugins/Experimental/NNE/Source/NNE/Public/NNEModelData.h |
| Include | #include "NNEModelData.h" |
Syntax
UCLASS&40;BlueprintType, Category&61;"NNE"&41;
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< class UAssetImportData > | AssetImportData | Importing data used for this asset. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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. | |
| TConstArrayView< uint8 > | GetModelData
(
const FString& RuntimeName |
Get the cached (editor) or cooked (game) optimized model data for a given runtime. | |
| TArrayView< const FString > | Get the target runtimes this model data will be cooked for. An empty list mean all runtimes. | ||
| void | Initialize the model data with a copy of the data inside Buffer. | ||
| void | SetTargetRuntimes
(
TArrayView< const FString > RuntimeNames |
Set the target runtimes this model data will be cooked for. An empty list mean all runtimes. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | Implements custom serialization of this asset. |
Constants
| Name | Description |
|---|---|
| GUID | A Guid used for asset versioning. |