UModelInstanceWrapper
template<class T>class UModelInstanceWrapper : public IModelInstanceInterface
Generic Interface for a model wrapping NNE Models targetted at different devices.
Template Parameters: class T
Dependencies: FGenericTensorBinding, IModelInstanceInterface
Inherits from: public IModelInstanceInterface
Public Interface
Constructor:
UModelInstanceWrapper
inline UModelInstanceWrapper(TSharedPtr<T> ModelPtr)
Parameters:
Name | Type | Default |
---|---|---|
ModelPtr | TSharedPtr<T> | “ |
Attributes: inline
Source: c:/Git/Schola/Source/Schola/Public/Policies/InferencePolicy.h
(line 51, column 1)
Public Functions:
GetInputTensorDescs
inline virtual TConstArrayView<UE::NNE::FTensorDesc> GetInputTensorDescs()
Returns: TConstArrayView<UE::NNE::FTensorDesc>
Attributes: inline
, virtual
Source: c:/Git/Schola/Source/Schola/Public/Policies/InferencePolicy.h
(line 58, column 17)
SetInputTensorShapes
inline virtual UE::NNE::EResultStatus SetInputTensorShapes(TConstArrayView<UE::NNE::FTensorShape> InInputShapes) override
Parameters:
Name | Type | Default |
---|---|---|
InInputShapes | TConstArrayView<UE::NNE::FTensorShape> | “ |
Returns: UE::NNE::EResultStatus
Attributes: inline
, virtual
Source: c:/Git/Schola/Source/Schola/Public/Policies/InferencePolicy.h
(line 63, column 24)
RunSync
inline virtual UE::NNE::EResultStatus RunSync(TConstArrayView<FGenericTensorBinding> InInputBindings, TConstArrayView<FGenericTensorBinding> InOutputBindings) override
Parameters:
Name | Type | Default |
---|---|---|
InInputBindings | TConstArrayView<FGenericTensorBinding> | “ |
InOutputBindings | TConstArrayView<FGenericTensorBinding> | “ |
Returns: UE::NNE::EResultStatus
Attributes: inline
, virtual
Source: c:/Git/Schola/Source/Schola/Public/Policies/InferencePolicy.h
(line 68, column 24)
Private Interface
Private Members:
TSharedPtr<T> WrappedModel
TSharedPtr<T> WrappedModel
Attributes: private
Source: c:/Git/Schola/Source/Schola/Public/Policies/InferencePolicy.h
(line 40, column 12)
Source: c:/Git/Schola/Source/Schola/Public/Policies/InferencePolicy.h
(line 37, column 1)