Skip to content

FCPURuntimeWrapper

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.

class FCPURuntimeWrapper : public IRuntimeInterface

Methods

FCPURuntimeWrapper

inline FCPURuntimeWrapper(TWeakInterfacePtr<INNERuntimeCPU> RawRuntime)

Constructor that wraps a raw CPU runtime.

Parameters

  • RawRuntime (TWeakInterfacePtr<INNERuntimeCPU>)

IsValid

inline virtual bool IsValid()

Checks if the wrapped runtime is valid.


CreateModel

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

Creates a CPU model from model data.

Parameters

  • ModelData (TObjectPtr<UNNEModelData>)

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