Skip to content

Class IModelInterface

Class IModelInterface

  • Defined in File NNEWrappers.h

Inheritance Relationships

Derived Types

class IModelInterface

Source: Source/Schola/NNE/Public/NNEUtils/NNEWrappers.h Generic interface for neural network models across different device types.

This interface provides a device-agnostic way to create and validate neural network models, abstracting differences between CPU and GPU implementations.

Subclassed by FCPUModelWrapper, FGPUModelWrapper


Public Functions

SymbolDetails
~IModelInterface
CreateModelInstanceCreates a model instance for running inference.
IsValidChecks if the model is valid and ready for use.

~IModelInterface

virtual ~IModelInterface() = default

Attributes: virtual

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

CreateModelInstance

virtual TSharedPtr<IModelInstanceRunSync> CreateModelInstance() = 0

Creates a model instance for running inference.

Returns:

Shared pointer to the created model instance

Attributes: pure virtual

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

IsValid

virtual bool IsValid() = 0

Checks if the model is valid and ready for use.

Returns:

true if the model is valid, false otherwise

Attributes: pure virtual

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