diff options
author | SiCong Li <sicong.li@arm.com> | 2017-06-19 15:31:43 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:14:20 +0100 |
commit | 3eb263e95898c933cde5450a919a161ac6b2359b (patch) | |
tree | c5a2c9be95ffe2ee69079c0b1f69c1ce89d9e095 /tests/validation/Reference.h | |
parent | 0326eae38bfe3788338664f2d99924e24a19895f (diff) | |
download | ComputeLibrary-3eb263e95898c933cde5450a919a161ac6b2359b.tar.gz |
COMPMID-424 Add validation tests for Gaussian5x5
* Fix apply_2d_spatial_filter to use double as intermediate type
* Fix tensor_elem_at to use random value if on border and border_mode is
UNDEFINED
Change-Id: I7feea23c4664cc63c5bab936566dc92b98c723b9
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78905
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@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 73227695e8..22aa939dab 100644 --- a/tests/validation/Reference.h +++ b/tests/validation/Reference.h @@ -182,6 +182,15 @@ public: * @return Computed raw tensor. */ static RawTensor compute_reference_gaussian3x3(const TensorShape &shape, BorderMode border_mode, uint8_t constant_border_value); + /** Compute reference gaussian5x5 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_gaussian5x5(const TensorShape &shape, BorderMode border_mode, uint8_t constant_border_value); /** Compute matrix multiply function. * * @param[in] src_shape1 First input tensor shape |