Navigation
API > API/Runtime > API/Runtime/NNE > API/Runtime/NNE/INNERuntimeRDG
Description
Create a model given some ModelData.
The caller must make sure ModelData remains valid throughout the call. ModelData is not required anymore after the model has been created. The caller can decide to convert the result into a shared pointer if required (e.g. if the model needs to be shared with the render thread).
| Name | CreateModelRDG |
| Type | function |
| Header File | /Engine/Source/Runtime/NNE/Public/NNERuntimeRDG.h |
| Include Path | #include "NNERuntimeRDG.h" |
TSharedPtr< UE::NNE::IModelRDG > CreateModelRDG
(
const TObjectPtr< UNNEModelData > ModelData
)
A caller owned model representing the neural network created from ModelData.
Parameters
| Name | Remarks |
|---|---|
| ModelData | The model data for which to create a model. |