17#ifndef __ONERT_BACKEND_BASIC_TENSOR_BUILDER_H__
18#define __ONERT_BACKEND_BASIC_TENSOR_BUILDER_H__
28#include <unordered_map>
40 TensorBuilder(
const std::shared_ptr<TensorRegistry> &tensor_reg,
42 TensorBuilder(
const std::shared_ptr<TensorRegistry> &tensor_reg,
const std::string planner_id,
64 const std::shared_ptr<TensorRegistry> _tensor_reg;
65 std::unique_ptr<DynamicTensorManager> _dynamic_tensor_mgr;
66 std::unique_ptr<StaticTensorManager> _static_tensor_mgr;
Class to manage dynamic tensor and its memory.
void registerTensorInfo(const ir::OperandIndex &ind, const ir::OperandInfo &info)
Register tensor information to allocate on CPU backend.
DynamicTensorManager * dynamicTensorManager(void)
void notifyLastUse(const ir::OperandIndex &)
const ir::OperandIndexMap< ir::OperandIndex > & getSharedMemoryOperandIndexes() const
void notifyFirstUse(const ir::OperandIndex &)
bool isRegistered(const ir::OperandIndex &) const
Class to save tensor's shape and type.
volatile const char info[]
std::unordered_map< OperandIndex, T > OperandIndexMap