aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/TypesUtils.hpp
diff options
context:
space:
mode:
authorDavid Beck <david.beck@arm.com>2018-09-12 16:00:08 +0100
committerMatthew Bentham <matthew.bentham@arm.com>2018-10-01 14:56:47 +0100
commit5cd01f35e8975ca6d42eb5f2d5f121b57bdb8086 (patch)
treeab11b97baa21458ba60e34566e6e7699281c764d /include/armnn/TypesUtils.hpp
parent279f8721824b104def48b426447fb1766d794e8e (diff)
downloadarmnn-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.hpp2
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();