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