17#ifndef __ONERT_BACKEND_BUILTIN_TENSOR_BUILDER_H__
18#define __ONERT_BACKEND_BUILTIN_TENSOR_BUILDER_H__
26#include <unordered_map>
40 TensorBuilder(
const std::shared_ptr<TensorRegistry> &tensor_reg);
67 const std::shared_ptr<TensorRegistry> _tensor_reg;
68 std::unique_ptr<DynamicTensorManager> _dynamic_tensor_mgr;
69 std::unique_ptr<basic::StaticTensorManager> _static_tensor_mgr;
Class to manage dynamic tensor and its memory.
void notifyLastUse(const ir::OperandIndex &)
void registerTensorInfo(const ir::OperandIndex &ind, const ir::OperandInfo &info)
Register tensor information to allocate on CPU backend.
void notifyFirstUse(const ir::OperandIndex &)
basic::Tensor * nativeOwnTensorAt(const ir::OperandIndex &ind)
Get tensor with a specific OperandIndex.
DynamicTensorManager * dynamicTensorManager(void)
bool isRegistered(const ir::OperandIndex &) const
Class to save tensor's shape and type.
volatile const char info[]
std::unordered_map< OperandIndex, T > OperandIndexMap