diff --git a/src/plugins/auto_batch/auto_batch.cpp b/src/plugins/auto_batch/auto_batch.cpp index fc22a4e53fe..3ef9b2bf223 100644 --- a/src/plugins/auto_batch/auto_batch.cpp +++ b/src/plugins/auto_batch/auto_batch.cpp @@ -308,8 +308,8 @@ AutoBatchExecutableNetwork::AutoBatchExecutableNetwork( // WA for gcc 4.8 ( fails compilation with member init-list) _device = networkDevice; auto time_out = config.find(CONFIG_KEY(AUTO_BATCH_TIMEOUT)); - if (time_out != config.end()) - _timeOut = ParseTimeoutValue(time_out->second.as()); + IE_ASSERT(time_out != config.end()); + _timeOut = ParseTimeoutValue(time_out->second.as()); } AutoBatchExecutableNetwork::~AutoBatchExecutableNetwork() { @@ -639,6 +639,7 @@ IE_DEFINE_PLUGIN_CREATE_FUNCTION(AutoBatchInferencePlugin, version) AutoBatchInferencePlugin::AutoBatchInferencePlugin() { _pluginName = "BATCH"; + _config[CONFIG_KEY(AUTO_BATCH_TIMEOUT)] = "1000"; // default value, in ms } InferenceEngine::Parameter AutoBatchInferencePlugin::GetMetric( diff --git a/src/plugins/auto_batch/auto_batch.hpp b/src/plugins/auto_batch/auto_batch.hpp index acc62892f84..0261179bb9a 100644 --- a/src/plugins/auto_batch/auto_batch.hpp +++ b/src/plugins/auto_batch/auto_batch.hpp @@ -80,7 +80,7 @@ protected: std::unordered_map _config; bool _needPerfCounters = false; std::atomic_size_t _numRequestsCreated = {0}; - std::atomic_int _timeOut = {1000}; // in ms + std::atomic_int _timeOut = {0}; // in ms }; class AutoBatchInferRequest : public InferenceEngine::IInferRequestInternal { diff --git a/src/tests/functional/plugin/gpu/shared_tests_instances/auto_batching/auto_batching_tests.cpp b/src/tests/functional/plugin/gpu/shared_tests_instances/auto_batching/auto_batching_tests.cpp index 364be920852..bb1460fcdb7 100644 --- a/src/tests/functional/plugin/gpu/shared_tests_instances/auto_batching/auto_batching_tests.cpp +++ b/src/tests/functional/plugin/gpu/shared_tests_instances/auto_batching/auto_batching_tests.cpp @@ -1,13 +1,16 @@ // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // -#include +#include "auto_batching/auto_batching_tests.hpp" +#include "behavior/plugin/configuration_tests.hpp" + const std::vector num_streams{ 2 }; const std::vector get_vs_set{ true, false }; const std::vector num_requests{ 1, 8, 16, 64 }; const std::vector num_batch{ 1, 8, 32, 256 }; using namespace AutoBatchingTests; +using namespace BehaviorTestsDefinitions; namespace AutoBatchingTests { @@ -28,4 +31,13 @@ INSTANTIATE_TEST_SUITE_P(smoke_AutoBatching_GPU, AutoBatching_Test_DetectionOutp ::testing::ValuesIn(num_requests), ::testing::ValuesIn(num_batch)), AutoBatching_Test_DetectionOutput::getTestCaseName); + +INSTANTIATE_TEST_SUITE_P( + smoke_AutoBatching_GPU, + DefaultConfigurationTest, + ::testing::Combine( + ::testing::Values(std::string(CommonTestUtils::DEVICE_BATCH) + ":" + CommonTestUtils::DEVICE_GPU), + ::testing::Values(DefaultParameter{CONFIG_KEY(AUTO_BATCH_TIMEOUT), + InferenceEngine::Parameter{"1000"}})), + DefaultConfigurationTest::getTestCaseName); } // namespace AutoBatchingTests \ No newline at end of file