diff options
author | SiCong Li <sicong.li@arm.com> | 2017-06-19 14:47:05 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:14:20 +0100 |
commit | 5a536641d9cb7c95b4422983b0f76627cabf6bda (patch) | |
tree | 5074e114c7f95bd25aff4480e65946e0c36a31ed /tests/validation/Reference.h | |
parent | d9afd9c2ec2fe28420e4c49e55ecf615c7735a44 (diff) | |
download | ComputeLibrary-5a536641d9cb7c95b4422983b0f76627cabf6bda.tar.gz |
COMPMID-424 Add tests for Gaussian3x3
* Add reference implementation and NEON CL validation tests for gaussian3x3
* Add tests for different border modes
* Incoporate PaddingCalculator
Change-Id: Ia3cd5cb2cd0b4d870a217e6aedecc01369dc2541
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78125
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/validation/Reference.h')
-rw-r--r-- | tests/validation/Reference.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/validation/Reference.h b/tests/validation/Reference.h index 973322d666..73227695e8 100644 --- a/tests/validation/Reference.h +++ b/tests/validation/Reference.h @@ -173,6 +173,15 @@ public: * @return Computed raw tensor. */ static RawTensor compute_reference_depth_convert(const TensorShape &shape, DataType dt_in, DataType dt_out, ConvertPolicy policy, uint32_t shift, uint32_t fixed_point_position); + /** Compute reference gaussian3x3 filter. + * + * @param[in] shape Shape of the input and output tensors. + * @param[in] border_mode BorderMode used by the input tensor + * @param[in] constant_border_value Constant to use if @p border_mode == CONSTANT + * + * @return Computed raw tensor. + */ + static RawTensor compute_reference_gaussian3x3(const TensorShape &shape, BorderMode border_mode, uint8_t constant_border_value); /** Compute matrix multiply function. * * @param[in] src_shape1 First input tensor shape |