commit | d7295b7079f6b9126596cea998146ca9c6e87706 | [log] [tgz] |
---|---|---|
author | Dmitry Savenko <dsavenko@xored.com> | Mon Nov 20 22:00:08 2017 +0700 |
committer | Anthony Barbier <anthony.barbier@arm.com> | Fri Nov 02 16:35:24 2018 +0000 |
tree | bcefca66765ec120090c437621388debe70ae21d | |
parent | 900b78f599ea5997d60e7538831a906b92265ae0 [diff] [blame] |
COMPMID-661: Add QASYMM8 support (and basic tests) to CLDepthwiseConvolution3x3 kernel (#28) Change-Id: I51bebe74e3814c1245812ad575fe7854d460674f Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/109864 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com>
diff --git a/src/core/CL/cl_kernels/helpers_asymm.h b/src/core/CL/cl_kernels/helpers_asymm.h index 3c1d58b..b44d0f1 100644 --- a/src/core/CL/cl_kernels/helpers_asymm.h +++ b/src/core/CL/cl_kernels/helpers_asymm.h
@@ -44,6 +44,7 @@ return (x >> exponent) + select(zero, one, (x & mask) > threshold); \ } +ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL(2) ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL(8) ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL(16) @@ -80,6 +81,7 @@ return select(ab_x2_high32, INT_MAX, overflow); \ } +ASYMM_MULT_IMP(2) ASYMM_MULT_IMP(8) ASYMM_MULT_IMP(16)