aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/Reference.h
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2017-06-13 15:49:37 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commit2ca209eaf3e1dee31bc2287be1f4e501697456db (patch)
tree907e59dff71eb6b082632f6940b985fb5df9b11b /tests/validation/Reference.h
parentd03b00acd71847fa2db1c5308c87d3b57c781bf9 (diff)
downloadComputeLibrary-2ca209eaf3e1dee31bc2287be1f4e501697456db.tar.gz
COMPMID-424 NEON MinMaxLocation test.
Change-Id: I3dda0961061b52c680b5af0443ad93a00425dd4c Reviewed-on: http://mpd-gerrit.cambridge.arm.com/77433 Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Steven Niu <steven.niu@arm.com>
Diffstat (limited to 'tests/validation/Reference.h')
-rw-r--r--tests/validation/Reference.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/validation/Reference.h b/tests/validation/Reference.h
index a3ae3b6d02..259afd19cd 100644
--- a/tests/validation/Reference.h
+++ b/tests/validation/Reference.h
@@ -26,6 +26,7 @@
#include "RawTensor.h"
#include "Types.h"
+#include "arm_compute/runtime/Array.h"
#include <map>
#include <vector>
@@ -58,6 +59,21 @@ public:
* @return Computed raw tensors along x and y axis.
*/
static std::pair<RawTensor, RawTensor> compute_reference_sobel_5x5(const TensorShape &shape, BorderMode border_mode, uint8_t constant_border_value);
+ /** Compute min max location.
+ *
+ * @param[in] shape Shape of the input tensors.
+ * @param[in] dt_in Data type of input tensor.
+ * @param[out] min Minimum value of tensor
+ * @param[out] max Maximum value of tensor
+ * @param[out] min_loc Array with locations of minimum values
+ * @param[out] max_loc Array with locations of maximum values
+ * @param[out] min_count Number of minimum values found
+ * @param[out] max_count Number of maximum values found
+ *
+ * @return Computed minimum, maximum values and their locations.
+ */
+ static void compute_reference_min_max_location(const TensorShape &shape, DataType dt_in, int32_t &min, int32_t &max, Coordinates2DArray &min_loc, Coordinates2DArray &max_loc, uint32_t &min_count,
+ uint32_t &max_count);
/** Compute reference mean and standard deviation.
*
* @param[in] shape Shape of the input tensors.