ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::backend::IConfig Struct Referenceabstract

#include <IConfig.h>

Public Member Functions

virtual ~IConfig ()=default
 
virtual std::string id ()=0
 Returns ID of the backend.
 
virtual bool initialize ()=0
 Initialize the backend. This is called as soon as the backend is loaded.
 
virtual void sync () const
 The function that is called after each Operation run on profiling mode. This may be useful for profiling GPU-based or special computing units.
 
virtual std::unique_ptr< util::ITimertimer ()
 Returns Timer object for this backend. For some computing units, it may need its own Timer implementation.
 
virtual bool supportPermutation ()=0
 
virtual bool supportDynamicTensor ()=0
 
virtual bool supportFP16 ()=0
 

Detailed Description

Definition at line 32 of file IConfig.h.

Constructor & Destructor Documentation

◆ ~IConfig()

virtual onert::backend::IConfig::~IConfig ( )
virtualdefault

Member Function Documentation

◆ id()

virtual std::string onert::backend::IConfig::id ( )
pure virtual

◆ initialize()

virtual bool onert::backend::IConfig::initialize ( )
pure virtual

Initialize the backend. This is called as soon as the backend is loaded.

Returns
true Initialization succeeded
false Initialization failed, so it cannot use this backend

Implemented in onert::backend::acl_cl::Config, onert::backend::acl_neon::Config, onert::backend::cpu::Config, onert::backend::ruy::Config, onert::backend::train::Config, onert::backend::trix::Config, onert::backend::xnnpack::Config, and onert::backend::builtin::Config.

◆ supportDynamicTensor()

◆ supportFP16()

◆ supportPermutation()

◆ sync()

virtual void onert::backend::IConfig::sync ( ) const
inlinevirtual

The function that is called after each Operation run on profiling mode. This may be useful for profiling GPU-based or special computing units.

Reimplemented in onert::backend::acl_cl::Config.

Definition at line 52 of file IConfig.h.

52{}

◆ timer()

virtual std::unique_ptr< util::ITimer > onert::backend::IConfig::timer ( )
inlinevirtual

Returns Timer object for this backend. For some computing units, it may need its own Timer implementation.

Returns
std::unique_ptr<util::ITimer> Timer object for this backend

Reimplemented in onert::backend::acl_cl::Config, onert::backend::acl_neon::Config, onert::backend::cpu::Config, onert::backend::ruy::Config, onert::backend::train::Config, onert::backend::trix::Config, onert::backend::xnnpack::Config, and onert::backend::builtin::Config.

Definition at line 59 of file IConfig.h.

59{ return nullptr; }

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