Skip to content

IRuntimeInterface

Generic interface for neural network runtimes across different device types.

This interface provides a device-agnostic way to create models and check runtime validity, abstracting differences between CPU and GPU runtimes.

Subclassed by FCPURuntimeWrapper, FGPURuntimeWrapper

class IRuntimeInterface

Methods

IRuntimeInterface

virtual ~IRuntimeInterface() = default

CreateModel

virtual TUniquePtr<IModelInterface>
CreateModel(TObjectPtr<UNNEModelData> ModelData) = 0

Creates a model from model data.

Parameters

  • ModelData (TObjectPtr<UNNEModelData>)

IsValid

virtual bool IsValid() = 0

Checks if the runtime is valid and ready for use.

Source: Source/ScholaNNE/Public/NNEUtils/NNEWrappers.h