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 32 of file BackendContext.h.
|
inline |
Definition at line 35 of file BackendContext.h.
|
inline |
Definition at line 47 of file BackendContext.h.
|
overridevirtual |
Implements onert::backend::BackendContext.
Definition at line 43 of file BackendContext.cc.
References onert::backend::BackendContext::_data, onert::backend::BackendContext::external_operands(), onert::backend::ContextData::graph, onert::backend::BackendContext::graph(), onert::backend::basic::initConsts(), onert::backend::basic::initSharedMemoryConsts(), kernel_gen, onert::backend::ContextData::op_order, onert::exec::IFunction::prepare(), tensor_builder, and onert::backend::BackendContext::tensor_registry.
|
overridevirtual |
Implements onert::backend::BackendContext.
Definition at line 37 of file BackendContext.cc.
References onert::backend::BackendContext::data(), onert::backend::BackendContext::external_operands(), onert::backend::basic::genTensors(), onert::backend::BackendContext::graph(), tensor_builder, and onert::backend::BackendContext::tensor_registry.
std::shared_ptr<KernelGenerator> onert::backend::cpu::BackendContext::kernel_gen |
Definition at line 52 of file BackendContext.h.
Referenced by genKernels().
std::shared_ptr<TensorBuilder> onert::backend::cpu::BackendContext::tensor_builder |
Definition at line 51 of file BackendContext.h.
Referenced by genKernels(), and genTensors().