Remove default consturctor for TypeInfo and TensorInfo
Block implicit using of default constructor
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
{
auto ind = mem_plan.first;
auto mem_blk = mem_plan.second;
- const auto &info = _tensor_info_map[ind];
+ const auto &info = _tensor_info_map.at(ind);
uint8_t *buffer = _mem_alloc->base() + mem_blk.offset;
auto tensor = std::make_shared<operand::Tensor>(info);
class TensorInfo
{
public:
- TensorInfo() = default;
+ TensorInfo() = delete;
public:
TensorInfo(const ::neurun::model::operand::Shape &shape,
class TypeInfo
{
public:
- TypeInfo() = default;
+ TypeInfo() = delete;
TypeInfo(DataType type, float scale, int32_t offset) : _type(type), _scale(scale), _offset(offset)
{