From b2eba7f307d5ae634ff41bd88d5bd1659466d82d Mon Sep 17 00:00:00 2001 From: ramelg01 Date: Thu, 23 Dec 2021 08:32:08 +0000 Subject: Replacing non-inclusive terms with proper terms Partially-Resolves: COMPMID-4854 Signed-off-by: Ramy Elgammal Change-Id: Ic9757c89878b9b5a89680b5344de657f676c7bf2 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6859 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gunes Bayir --- tests/framework/Framework.cpp | 2 +- tests/framework/Framework.h | 6 +++--- tests/main.cpp | 2 +- tests/validation/reference/FullyConnectedLayer.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/framework/Framework.cpp b/tests/framework/Framework.cpp index e59c5a45e9..03c1db82c8 100644 --- a/tests/framework/Framework.cpp +++ b/tests/framework/Framework.cpp @@ -529,7 +529,7 @@ void Framework::run_test(const TestInfo &info, TestCaseFactory &test_factory) { if(_stop_on_error) { - throw std::runtime_error("Abort on first error."); + throw std::runtime_error("Abandon on first error."); } } diff --git a/tests/framework/Framework.h b/tests/framework/Framework.h index 4c2e86c6ea..274f03a922 100644 --- a/tests/framework/Framework.h +++ b/tests/framework/Framework.h @@ -230,13 +230,13 @@ public: /** Indicates if test execution is stopped after the first failed test. * - * @return True if the execution is going to be aborted after the first failed test. + * @return True if the execution is going to be stopped after the first failed test. */ bool stop_on_error() const; - /** Set whether to abort execution after the first failed test. + /** Set whether to stop execution after the first failed test. * - * @param[in] stop_on_error True if execution is going to be aborted after first failed test. + * @param[in] stop_on_error True if execution is going to be stopped after first failed test. */ void set_stop_on_error(bool stop_on_error); diff --git a/tests/main.cpp b/tests/main.cpp index e1963b1609..bc264de378 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -116,7 +116,7 @@ int main(int argc, char **argv) auto filter_id = parser.add_option>("filter-id"); filter_id->set_help("List of test ids. ... can be used to define a range."); auto stop_on_error = parser.add_option("stop-on-error"); - stop_on_error->set_help("Abort execution after the first failed test (useful for debugging)"); + stop_on_error->set_help("Stop execution after the first failed test (useful for debugging)"); auto seed = parser.add_option>("seed", std::random_device()()); seed->set_help("Global seed for random number generation"); auto list_tests = parser.add_option("list-tests", false); diff --git a/tests/validation/reference/FullyConnectedLayer.cpp b/tests/validation/reference/FullyConnectedLayer.cpp index 21333958f8..af30e9ee54 100644 --- a/tests/validation/reference/FullyConnectedLayer.cpp +++ b/tests/validation/reference/FullyConnectedLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 Arm Limited. + * Copyright (c) 2017-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -123,7 +123,7 @@ SimpleTensor fully_connected_layer(const SimpleTensor &src, const SimpleTe // Create reference SimpleTensor dst{ TensorShape{ dst_shape }, src.data_type(), 1, out_quant_info }; - // Sanity checks + // Health checks const int num_batch_dimensions = std::max(0, static_cast(dst_shape.num_dimensions()) - 1); const int num_input_dimensions = src.shape().num_dimensions() - num_batch_dimensions; const unsigned int linear_input_size = src.shape().total_size_lower(num_input_dimensions); -- cgit v1.2.1