Skip to content

Class FGPURuntimeWrapper

Class FGPURuntimeWrapper

  • Defined in File NNEWrappers.h

Inheritance Relationships

Base Type

class FGPURuntimeWrapper : public IRuntimeInterface

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

Dependencies: IModelInterface

Wrapper class for GPU-based neural network runtimes.

This class wraps NNE GPU runtimes to provide a consistent interface for creating models and checking validity.


Public Functions

SymbolDetails
FGPURuntimeWrapperConstructor that wraps a raw GPU runtime.
IsValidChecks if the wrapped runtime is valid.
CreateModelCreates a GPU model from model data.

FGPURuntimeWrapper

inline FGPURuntimeWrapper(TWeakInterfacePtr<INNERuntimeGPU> RawRuntime)

Constructor that wraps a raw GPU runtime.

Parameters

RawRuntime – [in] The NNE GPU runtime to wrap

#DirectionNameTypeDescription
1RawRuntimeTWeakInterfacePtr< INNERuntimeGPU >The NNE GPU runtime to wrap

Attributes: inline

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

IsValid

inline virtual bool IsValid()

Checks if the wrapped runtime is valid.

Returns:

true if the runtime pointer is valid, false otherwise

Attributes: inline, virtual

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

CreateModel

inline virtual TUniquePtr<IModelInterface>
CreateModel(TObjectPtr<UNNEModelData> ModelData)

Creates a GPU model from model data.

Parameters

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

Returns:

Unique pointer to the created GPU model wrapper

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

Attributes: inline, virtual

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