aboutsummaryrefslogtreecommitdiff
path: root/tests/ExecuteNetwork/ExecuteNetworkParams.cpp
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2021-05-26 16:01:08 +0100
committerKevin May <kevin.may@arm.com>2021-05-26 16:19:38 +0100
commit94dd4dbbb2b59f47e38cf2f1280c4b25be45ea64 (patch)
treeb179186bcac41484dad37bcee18a705a05e462f6 /tests/ExecuteNetwork/ExecuteNetworkParams.cpp
parentb4b3ac91990eb5deaffca2300319f2ddf7aa0886 (diff)
downloadarmnn-94dd4dbbb2b59f47e38cf2f1280c4b25be45ea64.tar.gz
IVGCVSW-6009 Enable creating thread pool with 1 thread
* Allow the user to use create a tread pool with a single thread * This is in keeping with how the android-nn-driver was implemented * Add it to ExecuteNetwork thread pool creation Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I05b8048a9e0e45ae11d2b585080af28d9d008d81
Diffstat (limited to 'tests/ExecuteNetwork/ExecuteNetworkParams.cpp')
-rw-r--r--tests/ExecuteNetwork/ExecuteNetworkParams.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/ExecuteNetwork/ExecuteNetworkParams.cpp b/tests/ExecuteNetwork/ExecuteNetworkParams.cpp
index 189ece25a7..4002e89eba 100644
--- a/tests/ExecuteNetwork/ExecuteNetworkParams.cpp
+++ b/tests/ExecuteNetwork/ExecuteNetworkParams.cpp
@@ -137,14 +137,6 @@ void ExecuteNetworkParams::ValidateParams()
CheckModelFormat(m_ModelFormat);
- // Check number of simultaneous iterations
- // Testing std::launch::async with a single iteration is possible if concurrent is manually set
- if ((m_SimultaneousIterations <= 1 && m_ThreadPoolSize > 1) ||
- (m_SimultaneousIterations <= 1 && !m_Concurrent))
- {
- ARMNN_LOG(fatal) << "simultaneous-iterations cannot be less than 2.";
- }
-
// Check input tensor shapes
if ((m_InputTensorShapes.size() != 0) &&
(m_InputTensorShapes.size() != m_InputNames.size()))