ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::backend::cpu::Config Class Reference

#include <Config.h>

Collaboration diagram for onert::backend::cpu::Config:

Public Member Functions

std::string id () override
 Returns ID of the backend.
 
bool initialize () override
 Initialize the backend. This is called as soon as the backend is loaded.
 
bool supportPermutation () override
 
bool supportDynamicTensor () override
 
bool supportFP16 () override
 
std::unique_ptr< util::ITimertimer () override
 Returns Timer object for this backend. For some computing units, it may need its own Timer implementation.
 
- Public Member Functions inherited from onert::backend::IConfig
virtual ~IConfig ()=default
 
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.
 

Detailed Description

Definition at line 31 of file Config.h.

Member Function Documentation

◆ id()

std::string onert::backend::cpu::Config::id ( )
inlineoverridevirtual

Returns ID of the backend.

Returns
std::string ID of this backend

Implements onert::backend::IConfig.

Definition at line 34 of file Config.h.

34{ return "cpu"; }

◆ initialize()

bool onert::backend::cpu::Config::initialize ( )
overridevirtual

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

Implements onert::backend::IConfig.

Definition at line 26 of file Config.cc.

26{ return true; }

◆ supportDynamicTensor()

bool onert::backend::cpu::Config::supportDynamicTensor ( )
inlineoverridevirtual

Implements onert::backend::IConfig.

Definition at line 37 of file Config.h.

37{ return true; }

◆ supportFP16()

bool onert::backend::cpu::Config::supportFP16 ( )
inlineoverridevirtual

Implements onert::backend::IConfig.

Definition at line 38 of file Config.h.

38{ return false; }

◆ supportPermutation()

bool onert::backend::cpu::Config::supportPermutation ( )
inlineoverridevirtual

Implements onert::backend::IConfig.

Definition at line 36 of file Config.h.

36{ return true; }

◆ timer()

std::unique_ptr< util::ITimer > onert::backend::cpu::Config::timer ( )
inlineoverridevirtual

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 from onert::backend::IConfig.

Definition at line 40 of file Config.h.

40{ return std::make_unique<util::CPUTimer>(); }

The documentation for this class was generated from the following files: