aboutsummaryrefslogtreecommitdiff
path: root/tests/ExecuteNetwork
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/ExecuteNetwork
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/ExecuteNetwork')
-rw-r--r--tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp b/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
index 007f81890e..3a54b1ab19 100644
--- a/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
+++ b/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
@@ -34,7 +34,7 @@ void CheckOptionDependency(const cxxopts::ParseResult& result,
// Check that the given options are valid.
if (option == nullptr || required == nullptr)
{
- throw cxxopts::OptionParseException("Invalid option to check dependency for");
+ throw cxxopts::exceptions::exception("Invalid option to check dependency for");
}
// Check that if 'option' is provided, 'required' is also provided.
@@ -42,7 +42,7 @@ void CheckOptionDependency(const cxxopts::ParseResult& result,
{
if (CheckOption(result, required) == 0 || result[required].has_default())
{
- throw cxxopts::OptionParseException(
+ throw cxxopts::exceptions::exception(
std::string("Option '") + option + "' requires option '" + required + "'.");
}
}
@@ -514,7 +514,7 @@ void ProgramOptions::ParseOptions(int ac, const char* av[])
m_ExNetParams.m_OutputDetailsOnlyToStdOut) &&
!m_ExNetParams.m_EnableProfiling)
{
- throw cxxopts::OptionParseException("You must enable profiling if you would like to output layer details");
+ throw cxxopts::exceptions::exception("You must enable profiling if you would like to output layer details");
}
// Some options can't be assigned directly because they need some post-processing:
@@ -617,4 +617,3 @@ void ProgramOptions::ParseOptions(int ac, const char* av[])
m_ExNetParams.m_ComparisonComputeDevices = GetBackendIDs(comparisonComputDevices);
}
}
-