Navigation
API > API/Runtime > API/Runtime/NNE > API/Runtime/NNE/UNNEModelData
Description
Initialize the model data with a copy of the data inside Buffer.
This function is called by the UNNEModelDataFactory class when importing a neural network model file.
| Name | Init |
| Type | function |
| Header File | /Engine/Source/Runtime/NNE/Public/NNEModelData.h |
| Include Path | #include "NNEModelData.h" |
| Source | /Engine/Source/Runtime/NNE/Private/NNEModelData.cpp |
void Init
(
const FString & Type,
TConstArrayView64< uint8 > Buffer,
const TMap< FString, TConstArrayView64< uint8 > > & AdditionalBuffers
)
Parameters
| Name | Remarks |
|---|---|
| Type | A string identifying the type of data inside this asset. Corresponds to the extension of the imported file. |
| Buffer | The raw binary file data of the imported model to be copied into this asset. |
| AdditionalBuffers | Additional raw binary data of the model to be copied into this asset. |