aboutsummaryrefslogtreecommitdiff
path: root/arm_compute
diff options
context:
space:
mode:
authorSang-Hoon Park <sang-hoon.park@arm.com>2019-11-27 15:26:44 +0000
committerMichele Di Giorgio <michele.digiorgio@arm.com>2019-12-20 15:50:35 +0000
commitfb6aaeb3b02ad3210d57c1d945998f93c11de474 (patch)
tree9a99acaa6f36f28066b2d7b1b32809b980f88f2d /arm_compute
parentf29d1b7d8bf2d1619554eb3443556b44d4aa1a4c (diff)
downloadComputeLibrary-fb6aaeb3b02ad3210d57c1d945998f93c11de474.tar.gz
COMPMID-2773 [NE] add support for QASYMM8_SIGNED to QuantizationLayer
Change-Id: Ib692a79228fd85ee600c212d77439ca38d71f332 Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com> Reviewed-on: https://review.mlplatform.org/c/2377 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 'arm_compute')
-rw-r--r--arm_compute/core/NEON/NEAsymm.h2
-rw-r--r--arm_compute/core/NEON/kernels/NEQuantizationLayerKernel.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/arm_compute/core/NEON/NEAsymm.h b/arm_compute/core/NEON/NEAsymm.h
index c09a7d9028..e4f4250d16 100644
--- a/arm_compute/core/NEON/NEAsymm.h
+++ b/arm_compute/core/NEON/NEAsymm.h
@@ -695,7 +695,6 @@ inline uint8x16_t vquantize(const float32x4x4_t &qv, const UniformQuantizationIn
*
* @return A neon vector holding the quantized values
*/
-
inline int8x16_t vquantize_signed(const float32x4x4_t &qv, const UniformQuantizationInfo &qi)
{
const float scale = qi.scale;
@@ -716,7 +715,6 @@ inline int8x16_t vquantize_signed(const float32x4x4_t &qv, const UniformQuantiza
vcvtq_s32_f32(vmlaq_f32(voffset, qv.val[2], vinvscale)),
vcvtq_s32_f32(vmlaq_f32(voffset, qv.val[3], vinvscale)),
#endif //__aarch64__
-
}
};
const int8x8_t pa = vqmovn_s16(vcombine_s16(vqmovn_s32(rf.val[0]), vqmovn_s32(rf.val[1])));
diff --git a/arm_compute/core/NEON/kernels/NEQuantizationLayerKernel.h b/arm_compute/core/NEON/kernels/NEQuantizationLayerKernel.h
index 3a50c07ded..1a9b533640 100644
--- a/arm_compute/core/NEON/kernels/NEQuantizationLayerKernel.h
+++ b/arm_compute/core/NEON/kernels/NEQuantizationLayerKernel.h
@@ -84,7 +84,7 @@ private:
*
* @param[in] window Region on which to execute the kernel.
*/
- template <typename T>
+ template <typename TIn, typename TOut>
void run_quantize_qasymm8(const Window &window);
/** Function to apply QASYMM16 quantization on a tensor.
*