aboutsummaryrefslogtreecommitdiff
path: root/tests/InferenceTest.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2023-04-10 23:26:40 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2023-04-26 14:02:18 +0000
commit357add2c4685362afb188feaaa67b90e4d6d2361 (patch)
tree8016797bb16f9a6e2334c2f30eb1fecf8913c3f0 /tests/InferenceTest.hpp
parent2b04ec3b94da152281fbbc69f8539378589b1f56 (diff)
downloadarmnn-357add2c4685362afb188feaaa67b90e4d6d2361.tar.gz
Update cxxopts from 3.0 to 3.1.1
!android-nn-driver:9431 Signed-off-by: Jim Flynn <jim.flynn@arm.com> Change-Id: I58143445b5c5cf2aafd0838156c9543adce21e6a
Diffstat (limited to 'tests/InferenceTest.hpp')
-rw-r--r--tests/InferenceTest.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/InferenceTest.hpp b/tests/InferenceTest.hpp
index fb9c048488..f8a7d5e61e 100644
--- a/tests/InferenceTest.hpp
+++ b/tests/InferenceTest.hpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017 Arm Ltd. All rights reserved.
+// Copyright © 2017, 2023 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
@@ -28,7 +28,7 @@ inline std::istream& operator>>(std::istream& in, armnn::Compute& compute)
if (compute == armnn::Compute::Undefined)
{
in.setstate(std::ios_base::failbit);
- throw cxxopts::OptionException(fmt::format("Unrecognised compute device: {}", token));
+ throw cxxopts::exceptions::exception(fmt::format("Unrecognised compute device: {}", token));
}
return in;
}
@@ -41,7 +41,7 @@ inline std::istream& operator>>(std::istream& in, armnn::BackendId& backend)
if (compute == armnn::Compute::Undefined)
{
in.setstate(std::ios_base::failbit);
- throw cxxopts::OptionException(fmt::format("Unrecognised compute device: {}", token));
+ throw cxxopts::exceptions::exception(fmt::format("Unrecognised compute device: {}", token));
}
backend = compute;
return in;