36 BOOST_ASSERT_MSG(
false,
"Can't quantize unsupported data type");
const TensorShape & GetShape() const
MemoryType GetMemoryArea() const
Copyright (c) 2020 ARM Limited.
DataType GetDataType() const
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
const TensorInfo & GetInfo() const
void QuantizeConstant(const srcType *src, uint8_t *dst, size_t numElements, float &scale, int &offset)
ConstTensor CreateQuantizedConst(const ConstTensor &tensor, std::vector< uint8_t > &backing)
unsigned int GetNumElements() const