diff options
author | David Beck <david.beck@arm.com> | 2018-09-12 16:00:08 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-01 14:56:47 +0100 |
commit | 5cd01f35e8975ca6d42eb5f2d5f121b57bdb8086 (patch) | |
tree | ab11b97baa21458ba60e34566e6e7699281c764d /include/armnn/TypesUtils.hpp | |
parent | 279f8721824b104def48b426447fb1766d794e8e (diff) | |
download | armnn-5cd01f35e8975ca6d42eb5f2d5f121b57bdb8086.tar.gz |
IVGCVSW-1832: add missing DIV quantized, broadcasting tests
Change-Id: I042b71e77d175163837bf39d5703ada08d25e532
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(); |