ONE - On-device Neural Engine
|
#include <BackendContext.h>
Public Member Functions | |
BackendContext (const Backend *backend, ContextData &&data, std::shared_ptr< ITensorRegistry > tensor_registry=nullptr, std::shared_ptr< TensorBuilder > tensor_builder=nullptr, std::shared_ptr< KernelGenerator > kernel_gen=nullptr) | |
ITensorRegistry * | genTensors () override |
FunctionMap | genKernels () override |
std::shared_ptr< ExternalContext > | external_context () |
Public Member Functions inherited from onert::backend::BackendContext | |
BackendContext (const Backend *backend, ContextData &&data, std::shared_ptr< ITensorRegistry > tensor_registry=nullptr) | |
virtual | ~BackendContext ()=default |
const Backend * | backend () const |
const ir::Graph * | graph () const |
const util::Set< ir::OperandIndex > & | external_operands () const |
const ContextData & | data () const |
Data Fields | |
std::shared_ptr< TensorBuilder > | tensor_builder |
std::shared_ptr< KernelGenerator > | kernel_gen |
Data Fields inherited from onert::backend::BackendContext | |
std::shared_ptr< ITensorRegistry > | tensor_registry |
Additional Inherited Members | |
Protected Attributes inherited from onert::backend::BackendContext | |
const Backend * | _backend {nullptr} |
ContextData | _data |
Definition at line 33 of file BackendContext.h.
|
inline |
Definition at line 36 of file BackendContext.h.
|
inline |
Definition at line 50 of file BackendContext.h.
|
overridevirtual |
Implements onert::backend::BackendContext.
Definition at line 31 of file BackendContext.cc.
References onert::backend::BackendContext::_data, onert::backend::BackendContext::graph(), onert::backend::basic::initConsts(), kernel_gen, onert::backend::ContextData::op_order, and onert::exec::IFunction::prepare().
|
overridevirtual |
Implements onert::backend::BackendContext.
Definition at line 29 of file BackendContext.cc.
References onert::backend::basic::genTensors().
std::shared_ptr<KernelGenerator> onert::backend::builtin::BackendContext::kernel_gen |
Definition at line 59 of file BackendContext.h.
Referenced by genKernels().
std::shared_ptr<TensorBuilder> onert::backend::builtin::BackendContext::tensor_builder |
Definition at line 58 of file BackendContext.h.