diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2017-06-13 15:49:37 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | 2ca209eaf3e1dee31bc2287be1f4e501697456db (patch) | |
tree | 907e59dff71eb6b082632f6940b985fb5df9b11b /tests/validation/ReferenceCPP.cpp | |
parent | d03b00acd71847fa2db1c5308c87d3b57c781bf9 (diff) | |
download | ComputeLibrary-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/ReferenceCPP.cpp')
-rw-r--r-- | tests/validation/ReferenceCPP.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/validation/ReferenceCPP.cpp b/tests/validation/ReferenceCPP.cpp index 0db0352863..a1dc4ceeac 100644 --- a/tests/validation/ReferenceCPP.cpp +++ b/tests/validation/ReferenceCPP.cpp @@ -70,6 +70,13 @@ void ReferenceCPP::sobel_5x5(RawTensor &src, RawTensor &dst_x, RawTensor &dst_y, tensor_operations::sobel_5x5(s, dx, dy, border_mode, constant_border_value); } +// Minimum maximum location +void ReferenceCPP::min_max_location(const RawTensor &src, int32_t &min, int32_t &max, Coordinates2DArray &min_loc, Coordinates2DArray &max_loc, uint32_t &min_count, uint32_t &max_count) +{ + const TensorVariant s = TensorFactory::get_tensor(src); + boost::apply_visitor(tensor_visitors::min_max_location_visitor(min, max, min_loc, max_loc, min_count, max_count), s); +} + // Absolute difference void ReferenceCPP::absolute_difference(const RawTensor &src1, const RawTensor &src2, RawTensor &dst) { |