![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NNERuntimeGPU.h>
Public Member Functions | |
| virtual | ~IModelGPU ()=default |
| virtual TSharedPtr< UE::NNE::IModelInstanceGPU > | CreateModelInstanceGPU ()=0 |
The interface of a model capable of creating model instance that can run on GPU.
Use UE::NNE::GetRuntime<INNERuntimeGPU>(RuntimeName) to get a runtime capable of creating GPU models.
|
virtualdefault |
|
pure virtual |
Create a model instance for inference
The runtime have the opportunity to share the model weights among multiple IModelInstanceGPU created from an IModelGPU 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).