Skip to content

Class FCPURuntimeWrapper

Class FCPURuntimeWrapper

  • Defined in File NNEWrappers.h

Inheritance Relationships

Base Type

class FCPURuntimeWrapper : public IRuntimeInterface

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

Dependencies: IModelInterface

Wrapper class for CPU-based neural network runtimes.

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


Public Functions

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

FCPURuntimeWrapper

inline FCPURuntimeWrapper(TWeakInterfacePtr<INNERuntimeCPU> RawRuntime)

Constructor that wraps a raw CPU runtime.

Parameters

RawRuntime – [in] The NNE CPU runtime to wrap

#DirectionNameTypeDescription
1RawRuntimeTWeakInterfacePtr< INNERuntimeCPU >The NNE CPU 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 CPU model from model data.

Parameters

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

Returns:

Unique pointer to the created CPU model wrapper

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

Attributes: inline, virtual

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