| 381 | float Dequantize(QuantizedType value, float scale, int32_t offset); |
| 382 | |
| 383 | inline void VerifyTensorInfoDataType(const armnn::TensorInfo & info, armnn::DataType dataType) |
| 384 | { |
| 385 | if (info.GetDataType() != dataType) |
| 386 | { |
| 387 | std::stringstream ss; |
| 388 | ss << "Unexpected datatype:" << armnn::GetDataTypeName(info.GetDataType()) |
| 389 | << " for tensor:" << info.GetShape() |
| 390 | << ". The type expected to be: " << armnn::GetDataTypeName(dataType); |
| 391 | throw armnn::Exception(ss.str()); |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | } //namespace armnn |