Skip to content

Class IRuntimeInterface

Class IRuntimeInterface

  • Defined in File NNEWrappers.h

Inheritance Relationships

Derived Types

class IRuntimeInterface

Source: Source/Schola/NNE/Public/NNEUtils/NNEWrappers.h

Dependencies: IModelInterface

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


Public Functions

SymbolDetails
~IRuntimeInterface
CreateModelCreates a model from model data.
IsValidChecks if the runtime is valid and ready for use.

~IRuntimeInterface

virtual ~IRuntimeInterface() = default

Attributes: virtual

Source: Source/Schola/NNE/Public/NNEUtils/NNEWrappers.h

CreateModel

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

Creates a model from model data.

Parameters

ModelData – [in] The neural network model data to load

Returns:

Unique pointer to the created model interface

#DirectionNameTypeDescription
1ModelDataTObjectPtr< UNNEModelData >The neural network model data to load

Attributes: pure virtual

Source: Source/Schola/NNE/Public/NNEUtils/NNEWrappers.h

IsValid

virtual bool IsValid() = 0

Checks if the runtime is valid and ready for use.

Returns:

true if the runtime is valid, false otherwise

Attributes: pure virtual

Source: Source/Schola/NNE/Public/NNEUtils/NNEWrappers.h