ArmNN
 24.02
ArmnnDelegatePlugin Class Reference

#include <armnn_delegate.hpp>

Inheritance diagram for ArmnnDelegatePlugin:
[legend]
Collaboration diagram for ArmnnDelegatePlugin:
[legend]

Public Member Functions

tflite::delegates::TfLiteDelegatePtr Create () override
 
int GetDelegateErrno (TfLiteOpaqueDelegate *from_delegate) override
 
 ArmnnDelegatePlugin (const tflite::TFLiteSettings &tfliteSettings)
 

Static Public Member Functions

static std::unique_ptr< ArmnnDelegatePluginNew (const tflite::TFLiteSettings &tfliteSettings)
 

Detailed Description

Definition at line 96 of file armnn_delegate.hpp.

Constructor & Destructor Documentation

◆ ArmnnDelegatePlugin()

ArmnnDelegatePlugin ( const tflite::TFLiteSettings &  tfliteSettings)
inlineexplicit

Definition at line 115 of file armnn_delegate.hpp.

116  : m_delegateOptions(ParseArmNNSettings(&tfliteSettings))
117  {}

Member Function Documentation

◆ Create()

tflite::delegates::TfLiteDelegatePtr Create ( )
inlineoverride

Definition at line 104 of file armnn_delegate.hpp.

105  {
106  return tflite::delegates::TfLiteDelegatePtr(TfLiteArmnnOpaqueDelegateCreate(m_delegateOptions),
108  }

References armnnOpaqueDelegate::TfLiteArmnnOpaqueDelegateCreate(), and armnnOpaqueDelegate::TfLiteArmnnOpaqueDelegateDelete().

◆ GetDelegateErrno()

int GetDelegateErrno ( TfLiteOpaqueDelegate *  from_delegate)
inlineoverride

Definition at line 110 of file armnn_delegate.hpp.

111  {
112  return 0;
113  }

◆ New()

static std::unique_ptr<ArmnnDelegatePlugin> New ( const tflite::TFLiteSettings &  tfliteSettings)
inlinestatic

Definition at line 99 of file armnn_delegate.hpp.

100  {
101  return std::make_unique<ArmnnDelegatePlugin>(tfliteSettings);
102  }

The documentation for this class was generated from the following file:
armnnOpaqueDelegate::ParseArmNNSettings
armnnDelegate::DelegateOptions ParseArmNNSettings(const tflite::TFLiteSettings *tflite_settings)
armnnOpaqueDelegate::TfLiteArmnnOpaqueDelegateDelete
void TfLiteArmnnOpaqueDelegateDelete(TfLiteOpaqueDelegate *tfLiteDelegate)
armnnOpaqueDelegate::TfLiteArmnnOpaqueDelegateCreate
TfLiteOpaqueDelegate * TfLiteArmnnOpaqueDelegateCreate(armnnDelegate::DelegateOptions options)