diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2017-06-19 17:05:30 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:14:20 +0100 |
commit | 50f9fd73536fd359137702ac9c42c9a1c61ff415 (patch) | |
tree | 3b41b943be044d3f01fe624a419649f87c2e1738 /tests/validation/ReferenceCPP.h | |
parent | bee466b5eac4ec39d4032d946c9a4aee051f2b31 (diff) | |
download | ComputeLibrary-50f9fd73536fd359137702ac9c42c9a1c61ff415.tar.gz |
COMPMID-378 NEON/CL Sobel 3x3 and 5x5 tests.
Change-Id: Ic90edd77c7f694f95663d8163623db3837a48616
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78284
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'tests/validation/ReferenceCPP.h')
-rw-r--r-- | tests/validation/ReferenceCPP.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/validation/ReferenceCPP.h b/tests/validation/ReferenceCPP.h index 4173b8bc1d..b5e3fa0058 100644 --- a/tests/validation/ReferenceCPP.h +++ b/tests/validation/ReferenceCPP.h @@ -42,6 +42,26 @@ namespace validation class ReferenceCPP final : public Reference { public: + /** Function to compute reference sobel 3x3. + * + * @param[in] src Input tensor. + * @param[in] dst_x Result tensor along x axis + * @param[in] dst_y Result tensor along y axis + * @param[in] border_mode Border mode to use for input tensor + * @param[in] constant_border_value Constant value to use if @p border_mode is constant + * + */ + static void sobel_3x3(RawTensor &src, RawTensor &dst_x, RawTensor &dst_y, BorderMode border_mode, uint8_t constant_border_value); + /** Function to compute reference sobel 5x5. + * + * @param[in] src Input tensor. + * @param[in] dst_x Result tensor along x axis + * @param[in] dst_y Result tensor along y axis + * @param[in] border_mode Border mode to use for input tensor + * @param[in] constant_border_value Constant value to use if @p border_mode is constant + * + */ + static void sobel_5x5(RawTensor &src, RawTensor &dst_x, RawTensor &dst_y, BorderMode border_mode, uint8_t constant_border_value); /** Function to compute the mean and standard deviation of a tensor. * * @param[in] src Input tensor. |