Skip to content

IModelInterface

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

class IModelInterface

Methods

IModelInterface

virtual ~IModelInterface() = default

CreateModelInstance

virtual TSharedPtr<IModelInstanceRunSync> CreateModelInstance() = 0

Creates a model instance for running inference.


IsValid

virtual bool IsValid() = 0

Checks if the model is valid and ready for use.

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