From cd5ac23039dc3acd750c44442960280cc33307ef Mon Sep 17 00:00:00 2001 From: Nattapat Chaimanowong Date: Tue, 19 Mar 2019 12:26:36 +0000 Subject: IVGCVSW-2839 Add QuantisedSymm16 support to the ArmNN frontend Change-Id: I76f4e7db55b0efbb1a5f7d1a32bf451e66add0c7 Signed-off-by: Nattapat Chaimanowong --- src/armnn/CompatibleTypes.hpp | 6 ++++++ src/armnn/TypeUtils.hpp | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src/armnn') diff --git a/src/armnn/CompatibleTypes.hpp b/src/armnn/CompatibleTypes.hpp index 2449876544..4e31aed2aa 100644 --- a/src/armnn/CompatibleTypes.hpp +++ b/src/armnn/CompatibleTypes.hpp @@ -35,6 +35,12 @@ inline bool CompatibleTypes(DataType dataType) return dataType == DataType::Boolean || dataType == DataType::QuantisedAsymm8; } +template<> +inline bool CompatibleTypes(DataType dataType) +{ + return dataType == DataType::QuantisedSymm16; +} + template<> inline bool CompatibleTypes(DataType dataType) { diff --git a/src/armnn/TypeUtils.hpp b/src/armnn/TypeUtils.hpp index f7d0e077c8..55269f4620 100644 --- a/src/armnn/TypeUtils.hpp +++ b/src/armnn/TypeUtils.hpp @@ -32,6 +32,12 @@ struct ResolveTypeImpl using Type = uint8_t; }; +template<> +struct ResolveTypeImpl +{ + using Type = int16_t; +}; + template<> struct ResolveTypeImpl { -- cgit v1.2.1