ArmNN
 24.08
BackendOptions Struct Reference

Struct for the users to pass backend specific options. More...

#include <BackendOptions.hpp>

Classes

struct  BackendOption
 
class  Var
 Very basic type safe variant. More...
 

Public Member Functions

 BackendOptions (BackendId backend)
 
 BackendOptions (BackendId backend, std::initializer_list< BackendOption > options)
 
 BackendOptions (const BackendOptions &other)=default
 
 BackendOptions (BackendOptions &&other)=default
 
BackendOptionsoperator= (const BackendOptions &other)=default
 
BackendOptionsoperator= (BackendOptions &&other)=default
 
void AddOption (BackendOption &&option)
 
void AddOption (const BackendOption &option)
 
const BackendIdGetBackendId () const noexcept
 
size_t GetOptionCount () const noexcept
 
const BackendOptionGetOption (size_t idx) const
 

Detailed Description

Struct for the users to pass backend specific options.

Definition at line 22 of file BackendOptions.hpp.

Constructor & Destructor Documentation

◆ BackendOptions() [1/4]

BackendOptions ( BackendId  backend)
inlineexplicit

Definition at line 259 of file BackendOptions.hpp.

260  : m_TargetBackend(backend)
261  {}

◆ BackendOptions() [2/4]

BackendOptions ( BackendId  backend,
std::initializer_list< BackendOption options 
)
inline

Definition at line 263 of file BackendOptions.hpp.

264  : m_TargetBackend(backend)
265  , m_Options(options)
266  {}

◆ BackendOptions() [3/4]

BackendOptions ( const BackendOptions other)
default

◆ BackendOptions() [4/4]

BackendOptions ( BackendOptions &&  other)
default

Member Function Documentation

◆ AddOption() [1/2]

void AddOption ( BackendOption &&  option)
inline

Definition at line 273 of file BackendOptions.hpp.

274  {
275  m_Options.push_back(option);
276  }

◆ AddOption() [2/2]

void AddOption ( const BackendOption option)
inline

Definition at line 278 of file BackendOptions.hpp.

279  {
280  m_Options.push_back(option);
281  }

◆ GetBackendId()

const BackendId& GetBackendId ( ) const
inlinenoexcept

Definition at line 283 of file BackendOptions.hpp.

283 { return m_TargetBackend; }

◆ GetOption()

const BackendOption& GetOption ( size_t  idx) const
inline

Definition at line 285 of file BackendOptions.hpp.

285 { return m_Options[idx]; }

Referenced by armnn::GetCapability(), and armnn::HasMatchingCapability().

◆ GetOptionCount()

size_t GetOptionCount ( ) const
inlinenoexcept

Definition at line 284 of file BackendOptions.hpp.

284 { return m_Options.size(); }

Referenced by armnn::GetCapability(), and armnn::HasMatchingCapability().

◆ operator=() [1/2]

BackendOptions& operator= ( BackendOptions &&  other)
default

◆ operator=() [2/2]

BackendOptions& operator= ( const BackendOptions other)
default

The documentation for this struct was generated from the following file: