diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2020-06-01 15:53:21 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2020-06-01 16:00:06 +0000 |
commit | 6d76e4d4b6e7d5e44d2cc9368d53a996d10672e4 (patch) | |
tree | ea4b3348f36ede7cf4d87167f8204d1e932ab86e /tests/validation/reference | |
parent | dd717c3150b813da403fbfd38e1200936998824a (diff) | |
download | ComputeLibrary-6d76e4d4b6e7d5e44d2cc9368d53a996d10672e4.tar.gz |
Silence clang++-10 warning about copying iterators
Change-Id: I423b11bdf51ea544dd5c3c9c59d93475e09356ca
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3287
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/reference')
-rw-r--r-- | tests/validation/reference/NonMaxSuppression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/validation/reference/NonMaxSuppression.cpp b/tests/validation/reference/NonMaxSuppression.cpp index 8fc370b7af..9a638ce042 100644 --- a/tests/validation/reference/NonMaxSuppression.cpp +++ b/tests/validation/reference/NonMaxSuppression.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 ARM Limited. + * Copyright (c) 2019-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -143,7 +143,7 @@ SimpleTensor<int> non_max_suppression(const SimpleTensor<float> &bboxes, const S const size_t output_size = std::min(static_cast<size_t>(max_output_size), num_boxes); const std::vector<CandidateBox> candidates_vector = get_candidates(scores, score_threshold); std::vector<int> selected; - for(const auto c : candidates_vector) + for(const auto &c : candidates_vector) { if(selected.size() == output_size) { |