![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NNERuntimeCPU.h>
Public Types | |
| using | ECanCreateModelCPUStatus = UE::NNE::EResultStatus |
Public Member Functions | |
| virtual ECanCreateModelCPUStatus | CanCreateModelCPU (const TObjectPtr< UNNEModelData > ModelData) const =0 |
| virtual TSharedPtr< UE::NNE::IModelCPU > | CreateModelCPU (const TObjectPtr< UNNEModelData > ModelData)=0 |
The interface of a neural network runtime capable of creating CPU models.
Call UE::NNE::GetRuntime<INNERuntimeCPU>(RuntimeName) to get a runtime implementing this interface.
|
pure virtual |
Check if the runtime is able to create a model given some ModelData.
| ModelData | The model data for which to create a model. |
|
pure virtual |
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 an async task for evaluation).
| ModelData | The model data for which to create a model. |