![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NNERuntimeRDG.h>
Public Member Functions | |
| virtual | ~IModelRDG ()=default |
| virtual TSharedPtr< UE::NNE::IModelInstanceRDG > | CreateModelInstanceRDG ()=0 |
The interface of a model capable of creating model instance that can run on RDG.
Use UE::NNE::GetRuntime<INNERuntimeRDG>(RuntimeName) to get a runtime capable of creating RDG models.
|
virtualdefault |
|
pure virtual |
Create a model instance for inference
The runtime have the opportunity to share the model weights among multiple IModelInstanceRDG created from an IModelRDG instance, however this is not mandatory. The caller can decide to convert the result into a shared pointer if required (e.g. if the model needs to be shared with an async task for evaluation).