diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2020-10-30 16:57:43 +0000 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2020-10-30 20:51:21 +0000 |
commit | d7fdbe2306b9ebaba0aa625d8be14114f8631054 (patch) | |
tree | be8c5c41efe28fde556e5652e93694fe409f0c2c /test/1.3/QLstm.cpp | |
parent | 2408c595999a2632c95fcbe84462b1ac8fc2fcd4 (diff) | |
download | android-nn-driver-d7fdbe2306b9ebaba0aa625d8be14114f8631054.tar.gz |
IVGCVSW-5267 Remove use of boost::array from unit tests.
* Boost::array is used in a small number of nn driver unittests. It
can be directly replaced by std::array in C++ 11.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I4c6f4489b7cab8e60c6b76172c3027f953d63e3c
Diffstat (limited to 'test/1.3/QLstm.cpp')
-rw-r--r-- | test/1.3/QLstm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/1.3/QLstm.cpp b/test/1.3/QLstm.cpp index f58ed0a9..2dbd8b3e 100644 --- a/test/1.3/QLstm.cpp +++ b/test/1.3/QLstm.cpp @@ -10,11 +10,12 @@ #include <armnn/utility/IgnoreUnused.hpp> -#include <boost/array.hpp> #include <boost/test/unit_test.hpp> #include <boost/test/data/test_case.hpp> #include <boost/math/special_functions/relative_difference.hpp> +#include <array> + BOOST_AUTO_TEST_SUITE(QLSTMTests) using ArmnnDriver = armnn_driver::ArmnnDriver; @@ -85,9 +86,9 @@ void ExecuteModel(const armnn_driver::hal_1_3::HalPolicy::Model& model, } #ifndef ARMCOMPUTECL_ENABLED -static const boost::array<armnn::Compute, 1> COMPUTE_DEVICES = {{ armnn::Compute::CpuRef }}; +static const std::array<armnn::Compute, 1> COMPUTE_DEVICES = {{ armnn::Compute::CpuRef }}; #else -static const boost::array<armnn::Compute, 2> COMPUTE_DEVICES = {{ armnn::Compute::CpuRef, armnn::Compute::CpuAcc }}; +static const std::array<armnn::Compute, 2> COMPUTE_DEVICES = {{ armnn::Compute::CpuRef, armnn::Compute::CpuAcc }}; #endif // Add our own tests here since we skip the qlstm tests which Google supplies (because of non-const weights) |