UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
INNERuntimeCPU Class Referenceabstract

#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::IModelCPUCreateModelCPU (const TObjectPtr< UNNEModelData > ModelData)=0
 

Detailed Description

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.

Member Typedef Documentation

◆ ECanCreateModelCPUStatus

Member Function Documentation

◆ CanCreateModelCPU()

virtual ECanCreateModelCPUStatus INNERuntimeCPU::CanCreateModelCPU ( const TObjectPtr< UNNEModelData ModelData) const
pure virtual

Check if the runtime is able to create a model given some ModelData.

Parameters
ModelDataThe model data for which to create a model.
Returns
True if the runtime is able to create the model, false otherwise.

◆ CreateModelCPU()

virtual TSharedPtr< UE::NNE::IModelCPU > INNERuntimeCPU::CreateModelCPU ( const TObjectPtr< UNNEModelData ModelData)
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).

Parameters
ModelDataThe model data for which to create a model.
Returns
A caller owned model representing the neural network created from ModelData.

The documentation for this class was generated from the following file: