Class UModelInstanceWrapper
-
template<class T>
class UModelInstanceWrapper : public IModelInstanceInterface -
Generic Interface for a model wrapping NNE Models targetted at different devices.
- Template Parameters:
-
T – The type of the model instance to be wrapped
Public Types
- using BindingType = FBindingTypeExtractor<decltype(&T::RunSync)>::BoundType
Public Functions
- inline UModelInstanceWrapper(TSharedPtr<T> ModelPtr)
- inline virtual UE::NNE::EResultStatus SetInputTensorShapes(TConstArrayView<UE::NNE::FTensorShape> InInputShapes) override
- inline virtual UE::NNE::EResultStatus RunSync(TConstArrayView<FGenericTensorBinding> InInputBindings, TConstArrayView<FGenericTensorBinding> InOutputBindings) override