diff options
author | Sang-Hoon Park <sang-hoon.park@arm.com> | 2019-12-04 09:46:28 +0000 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2019-12-20 09:56:36 +0000 |
commit | d817647a4fabc8eccd0e64f54465e378a4239b32 (patch) | |
tree | 361ba03c78d83974cf7396510c85feb6dd3159e6 /tests/validation/fixtures/DequantizationLayerFixture.h | |
parent | e7be8a072967f9ae547468a7625e11477ea32221 (diff) | |
download | ComputeLibrary-d817647a4fabc8eccd0e64f54465e378a4239b32.tar.gz |
COMPMID-2767 [NEON] add support for QASYMM8_SIGNED to DequantizationLayer
Change-Id: If5b21d1e656b21baf39346c2fd74e8edc75007f5
Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2429
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'tests/validation/fixtures/DequantizationLayerFixture.h')
-rw-r--r-- | tests/validation/fixtures/DequantizationLayerFixture.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/validation/fixtures/DequantizationLayerFixture.h b/tests/validation/fixtures/DequantizationLayerFixture.h index f44f8658c2..3699613a39 100644 --- a/tests/validation/fixtures/DequantizationLayerFixture.h +++ b/tests/validation/fixtures/DequantizationLayerFixture.h @@ -106,6 +106,7 @@ protected: fill(src); return reference::dequantization_layer<T>(src); } + case DataType::QASYMM8_SIGNED: case DataType::QSYMM8_PER_CHANNEL: case DataType::QSYMM8: { @@ -149,6 +150,8 @@ protected: } case DataType::QASYMM8: return QuantizationInfo(1.f / distribution_scale_q8(gen), distribution_offset_q8(gen)); + case DataType::QASYMM8_SIGNED: + return QuantizationInfo(1.f / distribution_scale_q8(gen), -distribution_offset_q8(gen)); default: ARM_COMPUTE_ERROR("Unsupported data type"); } |