ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::backend::BackendContext Class Referenceabstract

#include <BackendContext.h>

Collaboration diagram for onert::backend::BackendContext:

Public Member Functions

 BackendContext (const Backend *backend, ContextData &&data, std::shared_ptr< ITensorRegistry > tensor_registry=nullptr)
 
virtual ~BackendContext ()=default
 
const Backendbackend () const
 
const ir::Graphgraph () const
 
const util::Set< ir::OperandIndex > & external_operands () const
 
const ContextDatadata () const
 
virtual ITensorRegistrygenTensors ()=0
 
virtual FunctionMap genKernels ()=0
 

Data Fields

std::shared_ptr< ITensorRegistrytensor_registry
 

Protected Attributes

const Backend_backend {nullptr}
 
ContextData _data
 

Detailed Description

Definition at line 51 of file BackendContext.h.

Constructor & Destructor Documentation

◆ BackendContext()

onert::backend::BackendContext::BackendContext ( const Backend backend,
ContextData &&  data,
std::shared_ptr< ITensorRegistry tensor_registry = nullptr 
)
inline

Definition at line 54 of file BackendContext.h.

57 {
58 }
std::shared_ptr< ITensorRegistry > tensor_registry
const ContextData & data() const
const Backend * backend() const

◆ ~BackendContext()

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

Member Function Documentation

◆ backend()

const Backend * onert::backend::BackendContext::backend ( ) const
inline

Definition at line 62 of file BackendContext.h.

62{ return _backend; }

References _backend.

Referenced by CfgRunner.CfgRunner::run(), and CfgRunner.CfgRunner::set_backend().

◆ data()

const ContextData & onert::backend::BackendContext::data ( ) const
inline

Definition at line 65 of file BackendContext.h.

65{ return _data; }

References _data.

Referenced by onert::backend::cpu::BackendContext::genTensors().

◆ external_operands()

◆ genKernels()

◆ genTensors()

◆ graph()

Field Documentation

◆ _backend

const Backend* onert::backend::BackendContext::_backend {nullptr}
protected

Definition at line 71 of file BackendContext.h.

71{nullptr};

Referenced by backend().

◆ _data

◆ tensor_registry


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