diff options
Diffstat (limited to 'include/armnn/TypesUtils.hpp')
-rw-r--r-- | include/armnn/TypesUtils.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/armnn/TypesUtils.hpp b/include/armnn/TypesUtils.hpp index 29de6e434e..c6db905bb9 100644 --- a/include/armnn/TypesUtils.hpp +++ b/include/armnn/TypesUtils.hpp @@ -240,6 +240,8 @@ inline std::ostream & operator<<(std::ostream & os, const armnn::TensorShape & s template<typename QuantizedType> inline QuantizedType Quantize(float value, float scale, int32_t offset) { + // TODO : check we act sensibly for Inf, NaN and -Inf + // see IVGCVSW-1849 static_assert(IsQuantizedType<QuantizedType>(), "Not an integer type."); constexpr QuantizedType max = std::numeric_limits<QuantizedType>::max(); constexpr QuantizedType min = std::numeric_limits<QuantizedType>::lowest(); |