diff options
author | Ryan OShea <Ryan.OShea2@arm.com> | 2020-02-07 10:06:33 +0000 |
---|---|---|
committer | Jan Eilers <jan.eilers@arm.com> | 2020-02-07 17:51:59 +0000 |
commit | 9add1200f5840e263115b48e17a6397ce3ae2d74 (patch) | |
tree | 6de2960e9d8c1f701f05cae6240abba674226416 /src/backends/reference/RefLayerSupport.cpp | |
parent | 13b59a4fbb0cc719f9388bcb7093a85e4741deb9 (diff) | |
download | armnn-9add1200f5840e263115b48e17a6397ce3ae2d74.tar.gz |
IVGCVSW-4386 Add ArmNN reference support for QAsymmS8
* Added Quantization Scheme for QAsymmS8
* Added Unit Tests for QAsymmS8
* Renamed QAsymm8 calls to QAsymmU8
Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I897b4e018ba1d808cc3f8c113f2be2dbad49c8db
Diffstat (limited to 'src/backends/reference/RefLayerSupport.cpp')
-rw-r--r-- | src/backends/reference/RefLayerSupport.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index 0ca19bbb06..c60348e529 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -610,7 +610,8 @@ bool RefLayerSupport::IsDequantizeSupported(const TensorInfo& input, { bool supported = true; - std::array<DataType,3> supportedInputTypes = { + std::array<DataType,4> supportedInputTypes = { + DataType::QAsymmS8, DataType::QAsymmU8, DataType::QSymmS8, DataType::QSymmS16 @@ -1439,9 +1440,10 @@ bool RefLayerSupport::IsQuantizeSupported(const TensorInfo& input, bool supported = true; // Define supported input types. - std::array<DataType,5> supportedInputTypes = { + std::array<DataType,6> supportedInputTypes = { DataType::Float32, DataType::Float16, + DataType::QAsymmS8, DataType::QAsymmU8, DataType::QSymmS8, DataType::QSymmS16 @@ -1451,8 +1453,9 @@ bool RefLayerSupport::IsQuantizeSupported(const TensorInfo& input, "Reference quantize: input type not supported."); // Define supported output types. - std::array<DataType,3> supportedOutputTypes = { + std::array<DataType,4> supportedOutputTypes = { DataType::QAsymmU8, + DataType::QAsymmS8, DataType::QSymmS8, DataType::QSymmS16 }; |