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