ONE - On-device Neural Engine
|
Namespaces | |
namespace | train |
Data Structures | |
class | Allocator |
Class to allocate memory. More... | |
struct | Block |
Structure to have memory offset and size. More... | |
class | BumpPlanner |
Class to plan memory by bump way. More... | |
class | DynamicMemoryManager |
class | DynamicTensorManager |
Class to manage dynamic tensor and its memory. More... | |
class | ExternalTensor |
Class that uses data from external memory that is not managed by a backend instead of allocating and copying the data. (ex. constant data from model file) ExternalTensor's data pointer points to an address of memory such as where memory is already allocated, or mmapped area. This is meaning that ExternalTensor can take all of types' ir::Data. To support this, assume below things no padding, always NHWC layout, constant tensor and not dynamic. More... | |
class | FirstFitPlanner |
Class to plan memory by firstfit way. More... | |
struct | IMemoryPlanner |
Interface to plan memory. More... | |
class | KernelGeneratorBase |
class | MemoryManager |
class | MemoryPlannerFactory |
class | StaticTensorManager |
class | Tensor |
class | TensorBuilder |
class | WICPlanner |
Class to plan memory by Weighted Interval Color algorithm. More... | |
Typedefs | |
using | TensorRegistry = PortableTensorRegistryTemplate< basic::Tensor > |
Functions | |
template<typename T_TensorBuilder > | |
void | planTensors (const std::shared_ptr< T_TensorBuilder > &tensor_builder, const ir::Graph &graph, const util::Set< ir::OperandIndex > &external_operands, const std::vector< onert::ir::OperationIndex > &op_order) |
template<typename T_TensorBuilder > | |
util::Set< ir::OperandIndex > | register_source_memory_tensors (const std::shared_ptr< T_TensorBuilder > &tensor_builder, const ir::Graph &graph, const util::Set< ir::OperandIndex > &external_operands, const ir::OperandIndexMap< ir::OperandIndex > &shared_memory_operand_idx) |
template<typename T_TensorBuilder > | |
ITensorRegistry * | genTensors (const std::shared_ptr< T_TensorBuilder > &tensor_builder, const ir::Graph &graph, const util::Set< ir::OperandIndex > &external_operands, const std::shared_ptr< ITensorRegistry > &tensor_registry, const std::vector< onert::ir::OperationIndex > &op_order, const ir::OperandIndexMap< ir::OperandIndex > &shared_memory_operand_idx) |
template<typename T_BackendContext > | |
ITensorRegistry * | genTensors (T_BackendContext &ctx) |
void | initSharedMemoryConsts (const ir::Operands &operands, const util::Set< ir::OperandIndex > &external_operands, TensorRegistry *tensor_registry, const ir::OperandIndexMap< ir::OperandIndex > &shared_memory_operands_map) |
void | initConsts (const ir::Operands &operands, const util::Set< ir::OperandIndex > &external_operands, ITensorRegistry *tensor_registry, const ir::OperandIndexMap< ir::OperandIndex > &shared_memory_operands_map) |
void | initConsts (BackendContext &ctx) |
Definition at line 30 of file TensorRegistry.h.
ITensorRegistry * onert::backend::basic::genTensors | ( | const std::shared_ptr< T_TensorBuilder > & | tensor_builder, |
const ir::Graph & | graph, | ||
const util::Set< ir::OperandIndex > & | external_operands, | ||
const std::shared_ptr< ITensorRegistry > & | tensor_registry, | ||
const std::vector< onert::ir::OperationIndex > & | op_order, | ||
const ir::OperandIndexMap< ir::OperandIndex > & | shared_memory_operand_idx | ||
) |
Definition at line 201 of file BackendContextHelpers.h.
References onert::util::Set< Element >::contains(), onert::util::getConfigString(), planTensors(), and register_source_memory_tensors().
Referenced by onert::backend::cpu::BackendContext::genTensors(), onert::backend::ruy::BackendContext::genTensors(), onert::backend::trix::BackendContext::genTensors(), onert::backend::xnnpack::BackendContext::genTensors(), onert::backend::builtin::BackendContext::genTensors(), and genTensors().
ITensorRegistry * onert::backend::basic::genTensors | ( | T_BackendContext & | ctx | ) |
Definition at line 238 of file BackendContextHelpers.h.
References genTensors().
|
inline |
Definition at line 300 of file BackendContextHelpers.h.
References onert::backend::BackendContext::external_operands(), onert::backend::BackendContext::graph(), initConsts(), onert::ir::Graph::operands(), and onert::backend::BackendContext::tensor_registry.
|
inline |
Definition at line 270 of file BackendContextHelpers.h.
References onert::util::ObjectManager< Index, Object >::at(), onert::util::Set< Element >::contains(), onert::backend::ITensorRegistry::getNativeITensor(), onert::ir::Operand::isConstant(), onert::util::ObjectManager< Index, Object >::iterate(), onert::backend::basic::ExternalTensor::setData(), onert::ir::Operand::shareData(), and VERBOSE.
Referenced by onert::backend::cpu::BackendContext::genKernels(), onert::backend::ruy::BackendContext::genKernels(), onert::backend::trix::BackendContext::genKernels(), onert::backend::xnnpack::BackendContext::genKernels(), onert::backend::builtin::BackendContext::genKernels(), and initConsts().
|
inline |
Definition at line 245 of file BackendContextHelpers.h.
References onert::util::ObjectManager< Index, Object >::at(), onert::util::Set< Element >::contains(), onert::backend::PortableTensorRegistryTemplate< T_Tensor >::getNativeTensor(), onert::util::ObjectManager< Index, Object >::iterate(), and VERBOSE.
Referenced by onert::backend::cpu::BackendContext::genKernels().
void onert::backend::basic::planTensors | ( | const std::shared_ptr< T_TensorBuilder > & | tensor_builder, |
const ir::Graph & | graph, | ||
const util::Set< ir::OperandIndex > & | external_operands, | ||
const std::vector< onert::ir::OperationIndex > & | op_order | ||
) |
Definition at line 39 of file BackendContextHelpers.h.
References onert::ir::OperandIndexSequence::append(), onert::util::Set< Element >::contains(), onert::ir::DUPLICATED, info, and onert::ir::UNDEFINED.
Referenced by genTensors().
util::Set< ir::OperandIndex > onert::backend::basic::register_source_memory_tensors | ( | const std::shared_ptr< T_TensorBuilder > & | tensor_builder, |
const ir::Graph & | graph, | ||
const util::Set< ir::OperandIndex > & | external_operands, | ||
const ir::OperandIndexMap< ir::OperandIndex > & | shared_memory_operand_idx | ||
) |
Definition at line 181 of file BackendContextHelpers.h.
References onert::util::Set< Element >::add(), and onert::util::Set< Element >::contains().
Referenced by genTensors().