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< DevContext > | dev_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 36 of file BackendContext.cc.
References onert::backend::BackendContext::_data, onert::backend::ContextData::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 34 of file BackendContext.cc.
References onert::backend::basic::genTensors().
std::shared_ptr<KernelGenerator> onert::backend::trix::BackendContext::kernel_gen |
Definition at line 52 of file BackendContext.h.
Referenced by genKernels().
std::shared_ptr<TensorBuilder> onert::backend::trix::BackendContext::tensor_builder |
Definition at line 51 of file BackendContext.h.