Skip to content

Class FCPUModelWrapper

Class FCPUModelWrapper

  • Defined in File NNEWrappers.h

Inheritance Relationships

Base Type

class FCPUModelWrapper : public IModelInterface

Source: Source/Schola/NNE/Public/NNEUtils/NNEWrappers.h Wrapper class for CPU-based neural network models.

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


Public Functions

SymbolDetails
FCPUModelWrapperConstructor that wraps a raw CPU model.
IsValidChecks if the wrapped model is valid.
CreateModelInstanceCreates a CPU model instance for inference.

FCPUModelWrapper

inline FCPUModelWrapper(TSharedPtr<UE::NNE::IModelCPU> RawModel)

Constructor that wraps a raw CPU model.

Parameters

RawModel – [in] The NNE CPU model to wrap

#DirectionNameTypeDescription
1RawModelTSharedPtr< UE::NNE::IModelCPU >The NNE CPU model to wrap

Attributes: inline

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

IsValid

inline virtual bool IsValid()

Checks if the wrapped model is valid.

Returns:

true if the model pointer is valid, false otherwise

Attributes: inline, virtual

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

CreateModelInstance

inline virtual TSharedPtr<IModelInstanceRunSync> CreateModelInstance()

Creates a CPU model instance for inference.

Returns:

Shared pointer to the created CPU model instance

Attributes: inline, virtual

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