ArmNN
 25.11
Loading...
Searching...
No Matches
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 {}
armnnDelegate::DelegateOptions ParseArmNNSettings(const tflite::TFLiteSettings *tflite_settings)

References armnnOpaqueDelegate::ParseArmNNSettings().

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),
107 TfLiteArmnnOpaqueDelegateDelete);
108 }
TfLiteOpaqueDelegate * TfLiteArmnnOpaqueDelegateCreate(armnnDelegate::DelegateOptions options)

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()

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: