Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU][TESTS] Replace 'std::tie' with structured bindings where possible (#31564)

Egor Duplenskii43f384f35f78
diff --git a/src/plugins/intel_gpu/tests/functional/behavior/infer_request.cpp b/src/plugins/intel_gpu/tests/functional/behavior/infer_request.cpp
index 68b8d9dc8e9..af4fa65de6e 100644
--- a/src/plugins/intel_gpu/tests/functional/behavior/infer_request.cpp
+++ b/src/plugins/intel_gpu/tests/functional/behavior/infer_request.cpp
@@ -35,10 +35,7 @@ protected:
};
std::string InferRequestIOPrecision::getTestCaseName(const testing::TestParamInfo<newtworkParams> &obj) {
- ov::element::Type model_type;
- ov::Shape shape;
- std::string targetDevice;
- std::tie(model_type, shape, targetDevice) = obj.param;
+ const auto& [model_type, shape, targetDevice] = obj.param;
std::ostringstream result;
const char separator = '_';
@@ -48,9 +45,8 @@ std::string InferRequestIOPrecision::getTestCaseName(const testing::TestParamInf
}
void InferRequestIOPrecision::SetUp() {
- ov::element::Type model_type;
- ov::Shape shape;
- std::tie(model_type, shape, targetDevice) = GetParam();
+ const auto& [model_type, shape, _targetDevice] = GetParam();
+ targetDevice = _targetDevice;
float clamp_min = model_type.is_signed() ? -5.f : 0.0f;
float clamp_max = 5.0f;
diff --git a/src/plugins/intel_gpu/tests/functional/behavior/inference_precision.cpp b/src/plugins/intel_gpu/tests/functional/behavior/inference_precision.cpp
index 43a8b85dfd9..4aa462ec336 100644
--- a/src/plugins/intel_gpu/tests/functional/behavior/inference_precision.cpp
+++ b/src/plugins/intel_gpu/tests/functional/behavior/inference_precision.cpp
@@ -12,9 +12,7 @@ using params = std::tuple<ov::element::Type, ov::element::Type>;
class InferencePrecisionTests : public ::testing::TestWithParam<params> {
public:
static std::string getTestCaseName(const testing::TestParamInfo<params> &obj) {
- ov::element::Type model_precision;
- ov::element::Type inference_precision;
- std::tie(model_precision, inference_precision) = obj.param;
+ const auto& [model_precision, inference_precision] = obj.param;
std::stringstream s;
s << "model_precision=" << model_precision << "_inference_precison=" << inference_precision;
return s.str();
@@ -24,9 +22,8 @@ public:
TEST_P(InferencePrecisionTests, smoke_canSetInferencePrecisionAndInfer) {
SKIP_IF_CURRENT_TEST_IS_DISABLED()
auto core = ov::test::utils::PluginCache::get().core();
- ov::element::Type model_precision;
- ov::element::Type inference_precision;
- std::tie(model_precision, inference_precision) = GetParam();
+
+ const auto& [model_precision, inference_precision] = GetParam();
auto function = ov::test::behavior::getDefaultNGraphFunctionForTheDevice({1, 2, 32, 32}, model_precision);
ov::CompiledModel compiled_model;
OV_ASSERT_NO_THROW(compiled_model = core->compile_model(function, ov::test::utils::DEVICE_GPU, ov::hint::inference_precision(inference_precision)));
diff --git a/src/plugins/intel_gpu/tests/functional/behavior/memory_dyn_batch.cpp b/src/plugins/intel_gpu/tests/functional/behavior/memory_dyn_batch.cpp
index 1261971e2ea..c34d46e0a1b 100644
--- a/src/plugins/intel_gpu/tests/functional/behavior/memory_dyn_batch.cpp
+++ b/src/plugins/intel_gpu/tests/functional/behavior/memory_dyn_batch.cpp
@@ -24,11 +24,7 @@ class MemoryDynamicBatch : public ::testing::Test,
public ::testing::WithParamInterface<MemoryDynamicBatchParams> {
public:
static std::string get_test_case_name(::testing::TestParamInfo<MemoryDynamicBatchParams> obj) {
- ov::PartialShape input_phape;
- ov::Shape input_shape;
- int iterations_num;
- std::string target_device;
- std::tie(input_phape, input_shape, iterations_num, target_device) = obj.param;
+ const auto& [input_phape, input_shape, iterations_num, target_device] = obj.param;
std::ostringstream result;
result << "IS=";
@@ -42,9 +38,9 @@ public:
}
void SetUp() override {
- ov::PartialShape input_pshape;
- std::string device_name;
- std::tie(input_pshape, input_shape, iterations_num, device_name) = GetParam();
+ const auto& [input_pshape, _input_shape, _iterations_num, device_name] = GetParam();
+ input_shape = _input_shape;
+ iterations_num = _iterations_num;
std::shared_ptr<ov::Model> model = build_model(element_type, input_pshape);
std::shared_ptr<ov::Core> core = ov::test::utils::PluginCache::get().core();
diff --git a/src/plugins/intel_gpu/tests/functional/behavior/model_cache.cpp b/src/plugins/intel_gpu/tests/functional/behavior/model_cache.cpp
index c5e240a4e77..e6a0498b4c9 100644
--- a/src/plugins/intel_gpu/tests/functional/behavior/model_cache.cpp
+++ b/src/plugins/intel_gpu/tests/functional/behavior/model_cache.cpp
@@ -61,11 +61,7 @@ typedef std::tuple<Import_API, bool, ov::element::Type, ov::element::Type> testP
class CheckWeightlessCacheAccuracy : public ::testing::Test, public ::testing::WithParamInterface<testParams> {
public:
static std::string get_test_case_name(::testing::TestParamInfo<testParams> obj) {
- Import_API import_api_;
- bool do_encryption_;
- ov::element::Type inference_mode_;
- ov::element::Type model_dtype_;
- std::tie(import_api_, do_encryption_, inference_mode_, model_dtype_) = obj.param;
+ const auto& [import_api_, do_encryption_, inference_mode_, model_dtype_] = obj.param;
std::ostringstream result;
const char separator = '_';
diff --git a/src/plugins/intel_gpu/tests/functional/concurrency/gpu_concurrency_tests.cpp b/src/plugins/intel_gpu/tests/functional/concurrency/gpu_concurrency_tests.cpp
index 512a79d7f17..ddf8e905488 100644
--- a/src/plugins/intel_gpu/tests/functional/concurrency/gpu_concurrency_tests.cpp
+++ b/src/plugins/intel_gpu/tests/functional/concurrency/gpu_concurrency_tests.cpp
@@ -33,8 +33,7 @@ class OVConcurrencyTest : public ov::test::TestsCommon,
};
public:
static std::string getTestCaseName(const testing::TestParamInfo<ConcurrencyTestParams>& obj) {
- size_t streams, requests;
- std::tie(streams, requests) = obj.param;
+ const auto& [streams, requests] = obj.param;
return "_num_streams_" + std::to_string(streams) + "_num_req_" +
std::to_string(requests);
}
diff --git a/src/plugins/intel_gpu/tests/functional/dynamic_tests/gpu_dyn_batch_shape_tests.cpp b/src/plugins/intel_gpu/tests/functional/dynamic_tests/gpu_dyn_batch_shape_tests.cpp
index d0b6d582185..2bea0a7634a 100644
--- a/src/plugins/intel_gpu/tests/functional/dynamic_tests/gpu_dyn_batch_shape_tests.cpp
+++ b/src/plugins/intel_gpu/tests/functional/dynamic_tests/gpu_dyn_batch_shape_tests.cpp
@@ -23,11 +23,7 @@ class OVDynamicBatchShape_Tests : public ::testing::WithParamInterface<OVDynamic
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(::testing::TestParamInfo<OVDynamicBatchParams> obj) {
- std::vector<InputShape> input_shapes;
- ov::element::Type model_type;
- std::string target_device;
- ov::AnyMap configuration;
- std::tie(input_shapes, model_type, target_device, configuration) = obj.param;
+ const auto& [input_shapes, model_type, target_device, configuration] = obj.param;
std::ostringstream result;
result << "IS=";
@@ -62,9 +58,11 @@ protected:
core.reset();
core = ov::test::utils::PluginCache::get().core();
}
- std::vector<InputShape> input_shape;
- std::tie(input_shape, model_type, targetDevice, configuration) = this->GetParam();
+ const auto& [input_shape, _model_type, _targetDevice, _configuration] = this->GetParam();
+ model_type = _model_type;
+ targetDevice = _targetDevice;
+ configuration = _configuration;
init_input_shapes(input_shape);
//TODO: think how we can switch between several input topologies in the future
diff --git a/src/plugins/intel_gpu/tests/functional/dynamic_tests/gpu_dyn_huge_input_range.cpp b/src/plugins/intel_gpu/tests/functional/dynamic_tests/gpu_dyn_huge_input_range.cpp
index d587b164329..285784ead36 100644
--- a/src/plugins/intel_gpu/tests/functional/dynamic_tests/gpu_dyn_huge_input_range.cpp
+++ b/src/plugins/intel_gpu/tests/functional/dynamic_tests/gpu_dyn_huge_input_range.cpp
@@ -34,12 +34,7 @@ class DynamicShapeHugeRangeGPUTest : public testing::WithParamInterface<StridedS
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<StridedSliceLayerParamSet>& obj) {
- InputShape shapes;
- StridedSliceParams params;
- ov::element::Type model_type;
- std::vector<ov::test::utils::InputLayerType> restInputType;
- std::map<std::string, std::string> additionalConfig;
- std::tie(shapes, params, model_type, restInputType, additionalConfig) = obj.param;
+ const auto& [shapes, params, model_type, restInputType, additionalConfig] = obj.param;
std::ostringstream results;
results << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -123,10 +118,9 @@ protected:
bool exception;
void SetUp() override {
- InputShape shapes;
- StridedSliceParams ssParams;
- std::map<std::string, std::string> additionalConfig;
- std::tie(shapes, ssParams, inType, restInputType, additionalConfig) = this->GetParam();
+ const auto& [shapes, ssParams, _inType, _restInputType, additionalConfig] = this->GetParam();
+ inType = _inType;
+ restInputType = _restInputType;
begin = ssParams.begin;
end = ssParams.end;
diff --git a/src/plugins/intel_gpu/tests/functional/remote_tensor_tests/gpu_remote_tensor_tests.cpp b/src/plugins/intel_gpu/tests/functional/remote_tensor_tests/gpu_remote_tensor_tests.cpp
index 062102e4580..70298a79449 100644
--- a/src/plugins/intel_gpu/tests/functional/remote_tensor_tests/gpu_remote_tensor_tests.cpp
+++ b/src/plugins/intel_gpu/tests/functional/remote_tensor_tests/gpu_remote_tensor_tests.cpp
@@ -71,10 +71,8 @@ protected:
public:
void SetUp() override {
deviceName = ov::test::utils::DEVICE_GPU;
- RemoteTensorSharingType sharing_type;
- bool with_auto_batching;
- bool is_dynamic;
- std::tie(sharing_type, with_auto_batching, is_dynamic) = this->GetParam();
+
+ const auto& [sharing_type, with_auto_batching, is_dynamic] = this->GetParam();
if (with_auto_batching) {
config =
{ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT),
@@ -89,10 +87,7 @@ public:
}
}
static std::string getTestCaseName(const testing::TestParamInfo<RemoteTensorSharingTestOptionsParams>& obj) {
- RemoteTensorSharingType sharing_type;
- bool with_auto_batching;
- bool is_dynamic;
- std::tie(sharing_type, with_auto_batching, is_dynamic) = obj.param;
+ const auto& [sharing_type, with_auto_batching, is_dynamic] = obj.param;
std::ostringstream result;
result << "OVRemoteTensorInputBlob_Test_";
@@ -106,10 +101,7 @@ public:
};
TEST_P(OVRemoteTensorInputBlob_Test, smoke_cantCreateBlobWithInvalidSize) {
- RemoteTensorSharingType sharing_type;
- bool with_auto_batching;
- bool is_dynamic;
- std::tie(sharing_type, with_auto_batching, is_dynamic) = GetParam();
+ const auto& [sharing_type, with_auto_batching, is_dynamic] = GetParam();
if (with_auto_batching || is_dynamic)
GTEST_SKIP();
@@ -169,10 +161,8 @@ TEST_P(OVRemoteTensorInputBlob_Test, smoke_canInputRemoteTensor) {
p.input().preprocess().convert_element_type(ov::element::f32);
auto function = p.build();
- RemoteTensorSharingType sharing_type;
- bool with_auto_batching;
- bool is_dynamic;
- std::tie(sharing_type, with_auto_batching, is_dynamic) = GetParam();
+
+ const auto& [sharing_type, with_auto_batching, is_dynamic] = GetParam();
// auto-batching relies on availability of the lock() for the tensor (and the *USM_DEVICE is not lockable)
if (with_auto_batching
@@ -351,10 +341,8 @@ TEST_P(OVRemoteTensorInputBlob_Test, smoke_canInputOutputRemoteTensor) {
p.input().preprocess().convert_element_type(ov::element::f32);
auto model = p.build();
- RemoteTensorSharingType sharing_type;
- bool with_auto_batching;
- bool is_dynamic;
- std::tie(sharing_type, with_auto_batching, is_dynamic) = GetParam();
+
+ const auto& [sharing_type, with_auto_batching, is_dynamic] = GetParam();
// auto-batching relies on availability of the lock() for the tensor (and the *USM_DEVICE is not lockable)
if (with_auto_batching)
@@ -2662,10 +2650,8 @@ TEST_P(RemoteTensor, smoke_CopyFrom) {
#if defined(ANDROID)
GTEST_SKIP();
#endif
- ov::element::Type type;
- TestParams p;
- RemoteTensorSharingType sharing_type;
- std::tie(type, sharing_type, p) = GetParam();
+
+ const auto& [type, sharing_type, p] = GetParam();
auto core = ov::Core();
auto remote_context = core.get_default_context(ov::test::utils::DEVICE_GPU);
@@ -2714,10 +2700,8 @@ TEST_P(RemoteTensor, smoke_CopyTo) {
#if defined(ANDROID)
GTEST_SKIP();
#endif
- ov::element::Type type;
- TestParams p;
- RemoteTensorSharingType sharing_type;
- std::tie(type, sharing_type, p) = GetParam();
+
+ const auto& [type, sharing_type, p] = GetParam();
auto core = ov::Core();
auto remote_context = core.get_default_context(ov::test::utils::DEVICE_GPU);
@@ -2898,8 +2882,7 @@ public:
fn_ptr = std::make_shared<ov::Model>(ov::OutputVector{add}, ov::ParameterVector{input1});
}
static std::string getTestCaseName(const testing::TestParamInfo<RemoteTensorDataTypesOptionsParams>& obj) {
- ov::element::Type_t elem_type;
- std::tie(elem_type) = obj.param;
+ const auto& [elem_type] = obj.param;
std::ostringstream result;
result << "OVRemoteTensorTest_" << elem_type;
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/interpolate.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/interpolate.cpp
index ddb1867574b..357a69ff385 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/interpolate.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/interpolate.cpp
@@ -14,12 +14,9 @@ protected:
void SetUp() override {
InterpolateLayerTest::SetUp();
ov::test::InterpolateLayerTestParams params = GetParam();
- ov::test::InterpolateSpecificParams interpolate_params;
- ov::element::Type model_type;
- std::vector<ov::test::InputShape> shapes;
- ov::Shape target_shape;
- std::map<std::string, std::string> additional_config;
- std::tie(interpolate_params, model_type, shapes, target_shape, targetDevice, additional_config) = this->GetParam();
+
+ const auto& [interpolate_params, model_type, shapes, target_shape, _targetDevice, additional_config] = this->GetParam();
+ targetDevice = _targetDevice;
// Some rounding float to integer types on GPU may differ from CPU, and as result,
// the actual values may differ from reference ones on 1 when the float is very close to an integer,
// e.g 6,0000023 calculated on CPU may be cast to 5 by OpenCL convert_uchar function.
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/mat_mul.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/mat_mul.cpp
index c9166041a9a..ca2053c907f 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/mat_mul.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/mat_mul.cpp
@@ -15,12 +15,13 @@ protected:
void SetUp() override {
MatMulLayerTest::SetUp();
ov::test::MatMulLayerTestParamsSet params = GetParam();
- std::vector<ov::test::InputShape> shapes; // Input Shapes
- std::pair<bool, bool> transpose_type; // Transpose inputs
- ov::element::Type model_type; // Model type
- ov::test::utils::InputLayerType input_layer_type; // Secondary input type
- std::map<std::string, std::string> additional_config; // Additional network configuration
- std::tie(shapes, transpose_type, model_type, input_layer_type, targetDevice, additional_config) = this->GetParam();
+ // Input Shapes
+ // Transpose inputs
+ // Model type
+ // Secondary input type
+ // Additional network configuration
+ const auto& [shapes, transpose_type, model_type, input_layer_type, _targetDevice, additional_config] = this->GetParam();
+ targetDevice = _targetDevice;
// Some rounding float to integer types on GPU may differ from CPU, and as result,
// the actual values may differ from reference ones on 1 when the float is very close to an integer,
// e.g 6,0000023 calculated on CPU may be cast to 5 by OpenCL convert_uchar function.
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/matrix_nms.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/matrix_nms.cpp
index ac62b9fa8a2..c3e36d403bf 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/matrix_nms.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/matrix_nms.cpp
@@ -221,13 +221,22 @@ void MatrixNmsLayerTestGPU::compare(const std::vector<ov::Tensor> &expectedOutpu
}
void MatrixNmsLayerTestGPU::SetUp() {
- std::vector<InputShape> shapes;
- ov::element::Type model_type;
- TopKParams top_k_params;
- ThresholdParams threshold_params;
-
- std::tie(shapes, model_type, m_attrs.sort_result_type, m_attrs.output_type, top_k_params, threshold_params,
- m_attrs.background_class, m_attrs.normalized, m_attrs.decay_function, targetDevice) = this->GetParam();
+ const auto& [shapes,
+ model_type,
+ _sort_result_type,
+ _output_type,
+ top_k_params,
+ threshold_params,
+ _background_class,
+ _normalized,
+ _decay_function,
+ _targetDevice] = this->GetParam();
+ m_attrs.sort_result_type = _sort_result_type;
+ m_attrs.output_type = _output_type;
+ m_attrs.background_class = _background_class;
+ m_attrs.normalized = _normalized;
+ m_attrs.decay_function = _decay_function;
+ targetDevice = _targetDevice;
std::tie(m_attrs.nms_top_k, m_attrs.keep_top_k) = top_k_params;
std::tie(m_attrs.score_threshold, m_attrs.gaussian_sigma, m_attrs.post_threshold) = threshold_params;
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/multiclass_nms.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/multiclass_nms.cpp
index 1cb2c8d73b7..00a3f544c4a 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/multiclass_nms.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/multiclass_nms.cpp
@@ -66,25 +66,13 @@ TEST_P(MulticlassNmsLayerTestGPU8, Inference) {
};
std::string MulticlassNmsLayerTestGPU::getTestCaseName(const testing::TestParamInfo<MulticlassNmsParamsGPU>& obj) {
- std::vector<ov::test::InputShape> shapes;
- InputTypes input_types;
- int32_t nmsTopK, backgroundClass, keepTopK;
- ov::element::Type outType;
- op::util::MulticlassNmsBase::SortResultType sortResultType;
- InputfloatVar inFloatVar;
- InputboolVar inboolVar;
- std::string targetDevice;
+ const auto& [shapes, input_types, nmsTopK, inFloatVar, backgroundClass, keepTopK, outType, sortResultType, inboolVar, targetDevice] = obj.param;
- std::tie(shapes, input_types, nmsTopK, inFloatVar, backgroundClass, keepTopK, outType, sortResultType, inboolVar, targetDevice) = obj.param;
+ const auto& [paramsPrec, roisnumPrec] = input_types;
- ov::test::ElementType paramsPrec, roisnumPrec;
- std::tie(paramsPrec, roisnumPrec) = input_types;
+ const auto& [iouThr, scoreThr, nmsEta] = inFloatVar;
- float iouThr, scoreThr, nmsEta;
- std::tie(iouThr, scoreThr, nmsEta) = inFloatVar;
-
- bool sortResCB, normalized;
- std::tie(sortResCB, normalized) = inboolVar;
+ const auto& [sortResCB, normalized] = inboolVar;
std::ostringstream result;
result << "IS=(";
@@ -342,29 +330,17 @@ void MulticlassNmsLayerTestGPU::compare(const std::vector<ov::Tensor> &expectedO
}
void MulticlassNmsLayerTestGPU::SetUp() {
- std::vector<InputShape> shapes;
- InputTypes input_types;
- size_t maxOutBoxesPerClass, backgroundClass, keepTopK;
- element::Type outType;
-
- op::util::MulticlassNmsBase::SortResultType sortResultType;
-
- InputfloatVar inFloatVar;
- InputboolVar inboolVar;
-
- std::tie(shapes, input_types, maxOutBoxesPerClass, inFloatVar, backgroundClass, keepTopK, outType, sortResultType, inboolVar, targetDevice)
- = this->GetParam();
+ const auto& [shapes, input_types, maxOutBoxesPerClass, inFloatVar, backgroundClass, keepTopK, outType, sortResultType, inboolVar, _targetDevice] =
+ this->GetParam();
+ targetDevice = _targetDevice;
init_input_shapes(shapes);
- ElementType paramsPrec, roisnumPrec;
- std::tie(paramsPrec, roisnumPrec) = input_types;
+ const auto& [paramsPrec, roisnumPrec] = input_types;
- float iouThr, scoreThr, nmsEta;
- std::tie(iouThr, scoreThr, nmsEta) = inFloatVar;
+ const auto& [iouThr, scoreThr, nmsEta] = inFloatVar;
- bool sortResCB, normalized;
- std::tie(sortResCB, normalized) = inboolVar;
+ const auto& [sortResCB, normalized] = inboolVar;
ov::ParameterVector params {std::make_shared<ov::op::v0::Parameter>(paramsPrec, inputDynamicShapes.at(0)),
std::make_shared<ov::op::v0::Parameter>(paramsPrec, inputDynamicShapes.at(1))};
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/multinomial.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/multinomial.cpp
index 7a247473bc2..f40bf79c199 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/multinomial.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/multinomial.cpp
@@ -20,16 +20,8 @@ private:
void MultinomialLayerTestGPU::SetUp() {
MultinomialTestParams test_params;
- std::string test_type;
- ov::Tensor probs;
- ov::Tensor num_samples;
- ov::test::ElementType convert_type;
- bool with_replacement;
- bool log_probs;
- std::pair<uint64_t, uint64_t> global_op_seed;
-
- std::tie(test_type, probs, num_samples, convert_type, with_replacement, log_probs, global_op_seed, targetDevice) =
- GetParam();
+ const auto& [test_type, probs, num_samples, convert_type, with_replacement, log_probs, global_op_seed, _targetDevice] = GetParam();
+ targetDevice = _targetDevice;
m_probs = probs;
m_num_samples = num_samples;
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/roi_pooling.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/roi_pooling.cpp
index 0bc7bd70a93..da0da87f134 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/roi_pooling.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/roi_pooling.cpp
@@ -13,13 +13,9 @@ protected:
};
void ROIPoolingLayerTestGPU::SetUp() {
- std::vector<InputShape> input_shapes;
- ov::Shape pool_shape;
- float spatial_scale;
- ov::test::utils::ROIPoolingTypes pool_method;
- ov::element::Type model_type;
std::string target_device;
- std::tie(input_shapes, pool_shape, spatial_scale, pool_method, model_type, targetDevice) = this->GetParam();
+ const auto& [input_shapes, pool_shape, spatial_scale, pool_method, model_type, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
abs_threshold = 0.08f;
if (model_type == ov::element::f16) {
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/subgraph_tests/matmul_conversion.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/subgraph_tests/matmul_conversion.cpp
index 5ef032c5e3e..fd671b07a4d 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/subgraph_tests/matmul_conversion.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/subgraph_tests/matmul_conversion.cpp
@@ -52,19 +52,7 @@ class MatmulConversionsSameParent : public testing::WithParamInterface<MatmulCon
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<MatmulConversionSharedParams> obj) {
- ShapeParams shape_params;
- ov::element::Type input_precision;
- bool matmul0_tran_0;
- bool matmul0_tran_1;
- bool matmul1_tran_0;
- bool matmul1_tran_1;
-
- std::tie(shape_params,
- input_precision,
- matmul0_tran_0,
- matmul0_tran_1,
- matmul1_tran_0,
- matmul1_tran_1) = obj.param;
+ const auto& [shape_params, input_precision, matmul0_tran_0, matmul0_tran_1, matmul1_tran_0, matmul1_tran_1] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -106,19 +94,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ShapeParams shape_params;
- ov::element::Type input_precision;
- bool matmul0_tran_0;
- bool matmul0_tran_1;
- bool matmul1_tran_0;
- bool matmul1_tran_1;
-
- std::tie(shape_params,
- input_precision,
- matmul0_tran_0,
- matmul0_tran_1,
- matmul1_tran_0,
- matmul1_tran_1) = GetParam();
+ const auto& [shape_params, input_precision, matmul0_tran_0, matmul0_tran_1, matmul1_tran_0, matmul1_tran_1] = GetParam();
init_input_shapes({shape_params.data_shape, {{}, {{shape_params.weights_shape}}}});
@@ -193,19 +169,7 @@ class MatmulConversions : public testing::WithParamInterface<MatmulConversionPar
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<MatmulConversionParams> obj) {
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
- bool matmul0_tran_0;
- bool matmul0_tran_1;
- bool matmul1_tran_0;
- bool matmul1_tran_1;
-
- std::tie(input_shapes,
- input_precision,
- matmul0_tran_0,
- matmul0_tran_1,
- matmul1_tran_0,
- matmul1_tran_1) = obj.param;
+ const auto& [input_shapes, input_precision, matmul0_tran_0, matmul0_tran_1, matmul1_tran_0, matmul1_tran_1] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -254,19 +218,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
- bool matmul0_tran_0;
- bool matmul0_tran_1;
- bool matmul1_tran_0;
- bool matmul1_tran_1;
-
- std::tie(input_shapes,
- input_precision,
- matmul0_tran_0,
- matmul0_tran_1,
- matmul1_tran_0,
- matmul1_tran_1) = GetParam();
+ const auto& [input_shapes, input_precision, matmul0_tran_0, matmul0_tran_1, matmul1_tran_0, matmul1_tran_1] = GetParam();
init_input_shapes(input_shapes);
@@ -349,19 +301,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
- bool matmul0_tran_0;
- bool matmul0_tran_1;
- bool matmul1_tran_0;
- bool matmul1_tran_1;
-
- std::tie(input_shapes,
- input_precision,
- matmul0_tran_0,
- matmul0_tran_1,
- matmul1_tran_0,
- matmul1_tran_1) = GetParam();
+ const auto& [input_shapes, input_precision, matmul0_tran_0, matmul0_tran_1, matmul1_tran_0, matmul1_tran_1] = GetParam();
init_input_shapes(input_shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/subgraph_tests/transpose_matmul_fusion.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/subgraph_tests/transpose_matmul_fusion.cpp
index 4f963bcec98..96a946a4b7b 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/subgraph_tests/transpose_matmul_fusion.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/subgraph_tests/transpose_matmul_fusion.cpp
@@ -22,11 +22,7 @@ class TransposeMatMulFusionOnGPU: public testing::WithParamInterface<TransposeMa
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<TransposeMatMulFusionParams> obj) {
- ov::PartialShape input0;
- ov::PartialShape input1;
- bool is_fused;
-
- std::tie(input0, input1, is_fused) = obj.param;
+ const auto& [input0, input1, is_fused] = obj.param;
std::ostringstream result;
result << "device=(" << std::string(utils::DEVICE_GPU) << ")_";
@@ -39,11 +35,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ov::PartialShape shape1;
- ov::PartialShape shape2;
- bool is_fused;
-
- std::tie(shape1, shape2, is_fused) = GetParam();
+ const auto& [shape1, shape2, is_fused] = GetParam();
InputShape input_shape1 = {shape1, {shape1.get_shape()}};
InputShape input_shape2 = {shape2, {shape2.get_shape()}};
@@ -61,9 +53,9 @@ protected:
}
void TearDown() override {
- bool is_fused;
-
- std::tie(std::ignore, std::ignore, is_fused) = GetParam();
+ const auto& [_ignore, _ignore1, is_fused] = GetParam();
+ std::ignore = _ignore;
+ std::ignore = _ignore1;
const auto model = compiledModel.get_runtime_model();
int num_ops = 0;
@@ -116,11 +108,7 @@ class MatMulTransposeFusionOnGPU: public testing::WithParamInterface<MatMulTrans
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<MatMulTransposeFusionParams> obj) {
- ov::PartialShape input0;
- ov::PartialShape input1;
- ov::PartialShape input2;
-
- std::tie(input0, input1, input2) = obj.param;
+ const auto& [input0, input1, input2] = obj.param;
std::ostringstream result;
result << "device=(" << std::string(utils::DEVICE_GPU) << ")_";
@@ -133,11 +121,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ov::PartialShape shape1;
- ov::PartialShape shape2;
- ov::PartialShape shape3;
-
- std::tie(shape1, shape2, shape3) = GetParam();
+ const auto& [shape1, shape2, shape3] = GetParam();
InputShape input_shape1 = {shape1, {shape1.get_shape()}};
InputShape input_shape2 = {shape2, {shape2.get_shape()}};
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/convolution.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/convolution.cpp
index d93b0fe718f..a6dcdb41872 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/convolution.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/convolution.cpp
@@ -27,19 +27,9 @@ class ConvolutionLayerGPUTest : public testing::WithParamInterface<convLayerTest
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<convLayerTestParamsSet>& obj) {
- convSpecificParams convParams;
- ov::element::Type netType;
- ov::element::Type inType, outType;
- InputShape inputShape;
- bool is_ReduceSum_test;
- std::string targetDevice;
- std::tie(convParams, netType, inType, outType, inputShape, is_ReduceSum_test, targetDevice) = obj.param;
-
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd;
- size_t convOutChannels;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType) = convParams;
+ const auto& [convParams, netType, inType, outType, inputShape, is_ReduceSum_test, targetDevice] = obj.param;
+
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType] = convParams;
std::ostringstream result;
result << "IS=";
@@ -70,19 +60,15 @@ public:
protected:
void SetUp() override {
- convSpecificParams convParams;
- InputShape inputShape;
- auto netType = ov::element::dynamic;
- bool is_ReduceSum_test;
- std::tie(convParams, netType, inType, outType, inputShape, is_ReduceSum_test, targetDevice) = this->GetParam();
+ const auto& [convParams, netType, _inType, _outType, inputShape, is_ReduceSum_test, _targetDevice] = this->GetParam();
+ inType = _inType;
+ outType = _outType;
+ targetDevice = _targetDevice;
init_input_shapes({inputShape});
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd;
- size_t convOutChannels;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType) = convParams;
+ const auto& [_kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType] = convParams;
+ auto kernel = _kernel;
ov::ParameterVector inputParams;
for (auto&& shape : inputDynamicShapes)
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/adaptive_pooling.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/adaptive_pooling.cpp
index 92114046be9..a0e0ab1bbc6 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/adaptive_pooling.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/adaptive_pooling.cpp
@@ -31,15 +31,9 @@ public:
static std::string getTestCaseName(testing::TestParamInfo<AdaPoolLayerGPUTestParams> obj) {
AdaPoolLayerGPUTestParams basicParamsSet;
basicParamsSet = obj.param;
- std::string targetDevice;
- ov::element::Type netPr;
- bool isStatic;
- AdaPoolSpecificParams adaPar;
- std::vector<int> pooledSpatialShape;
- std::vector<InputShape> inputShape;
- std::string mode;
- std::tie(adaPar, mode, isStatic, netPr, targetDevice) = basicParamsSet;
- std::tie(pooledSpatialShape, inputShape) = adaPar;
+
+ const auto& [adaPar, mode, isStatic, netPr, targetDevice] = basicParamsSet;
+ const auto& [pooledSpatialShape, inputShape] = adaPar;
std::ostringstream result;
result << "AdaPoolTest_";
@@ -66,12 +60,11 @@ protected:
AdaPoolLayerGPUTestParams basicParamsSet;
basicParamsSet = this->GetParam();
- AdaPoolSpecificParams adaPoolParams;
- ov::element::Type netPrecision;
- bool isStatic;
- std::vector<InputShape> inputShape;
- std::tie(adaPoolParams, mode, isStatic, netPrecision, targetDevice) = basicParamsSet;
- std::tie(pooledVector, inputShape) = adaPoolParams;
+ const auto& [adaPoolParams, _mode, isStatic, netPrecision, _targetDevice] = basicParamsSet;
+ mode = _mode;
+ targetDevice = _targetDevice;
+ const auto& [_pooledVector, inputShape] = adaPoolParams;
+ pooledVector = _pooledVector;
init_input_shapes(inputShape);
if (!isStatic) {
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/batch_to_space.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/batch_to_space.cpp
index db9e1a7531b..7fbc1dee9be 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/batch_to_space.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/batch_to_space.cpp
@@ -32,12 +32,7 @@ class BatchToSpaceLayerGPUTest : public testing::WithParamInterface<BatchToSpace
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<BatchToSpaceParamsLayerParamSet>& obj) {
- InputShape shapes;
- BatchToSpaceParams params;
- ov::element::Type model_type;
- ov::test::utils::InputLayerType restInputType;
- std::map<std::string, std::string> additionalConfig;
- std::tie(shapes, params, model_type, restInputType, additionalConfig) = obj.param;
+ const auto& [shapes, params, model_type, restInputType, additionalConfig] = obj.param;
std::ostringstream results;
results << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -98,11 +93,8 @@ protected:
size_t inferRequestNum = 0;
void SetUp() override {
- InputShape shapes;
- BatchToSpaceParams ssParams;
- ov::test::utils::InputLayerType restInputType;
- std::map<std::string, std::string> additionalConfig;
- std::tie(shapes, ssParams, inType, restInputType, additionalConfig) = this->GetParam();
+ const auto& [shapes, ssParams, _inType, restInputType, additionalConfig] = this->GetParam();
+ inType = _inType;
block = ssParams.block;
begin = ssParams.begin;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/broadcast.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/broadcast.cpp
index 1f9cb18db52..fe63d0f4269 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/broadcast.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/broadcast.cpp
@@ -27,13 +27,7 @@ class BroadcastLayerGPUTest : public testing::WithParamInterface<BroadcastLayerT
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<BroadcastLayerTestParamsSet> obj) {
- std::vector<ov::test::InputShape> shapes;
- std::vector<int64_t> targetShapes, axesMapping;
- ov::op::BroadcastType mode;
- ov::element::Type model_type;
- std::vector<bool> isConstInputs;
- std::string deviceName;
- std::tie(shapes, targetShapes, axesMapping, mode, model_type, isConstInputs, deviceName) = obj.param;
+ const auto& [shapes, targetShapes, axesMapping, mode, model_type, isConstInputs, deviceName] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -60,11 +54,10 @@ protected:
std::vector<int64_t> targetShape, axesMapping;
void SetUp() override {
- std::vector<InputShape> shapes;
- ov::op::BroadcastType mode;
- ov::element::Type model_type;
- std::vector<bool> isConstInput;
- std::tie(shapes, targetShape, axesMapping, mode, model_type, isConstInput, targetDevice) = this->GetParam();
+ const auto& [shapes, _targetShape, _axesMapping, mode, model_type, isConstInput, _targetDevice] = this->GetParam();
+ targetShape = _targetShape;
+ axesMapping = _axesMapping;
+ targetDevice = _targetDevice;
bool isTargetShapeConst = isConstInput[0];
bool isAxesMapConst = isConstInput[1];
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/convolution.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/convolution.cpp
index 87a780caec0..e392a9fdb58 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/convolution.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/convolution.cpp
@@ -30,18 +30,9 @@ class ConvolutionLayerGPUTestDynamic : public testing::WithParamInterface<convLa
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<convLayerTestParamsSet>& obj) {
- convSpecificParams convParams;
- ov::element::Type model_type;
- InputShape inputShape;
- std::string targetDevice;
- bool activationFusing;
- std::tie(convParams, model_type, inputShape, targetDevice, activationFusing) = obj.param;
-
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd;
- size_t convOutChannels;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType) = convParams;
+ const auto& [convParams, model_type, inputShape, targetDevice, activationFusing] = obj.param;
+
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType] = convParams;
std::ostringstream result;
result << "IS=";
@@ -67,19 +58,12 @@ public:
protected:
void SetUp() override {
- convSpecificParams convParams;
- InputShape inputShape;
- auto model_type = ov::element::dynamic;
- bool activationFusing;
- std::tie(convParams, model_type, inputShape, targetDevice, activationFusing) = this->GetParam();
+ const auto& [convParams, model_type, inputShape, _targetDevice, activationFusing] = this->GetParam();
+ targetDevice = _targetDevice;
init_input_shapes({inputShape});
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd;
- size_t convOutChannels;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType) = convParams;
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType] = convParams;
ov::ParameterVector inputParams;
for (auto&& shape : inputDynamicShapes)
@@ -335,18 +319,9 @@ class ConvolutionLayerGPUTestDynamicEltwiseFusing : public testing::WithParamInt
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<convLayerFusingTestParamsSet>& obj) {
- convSpecificParams convParams;
- ov::element::Type model_type;
- std::vector<InputShape> inputShapes;
- std::string targetDevice;
- bool activationFusing;
- std::tie(convParams, model_type, inputShapes, targetDevice, activationFusing) = obj.param;
-
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd;
- size_t convOutChannels;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType) = convParams;
+ const auto& [convParams, model_type, inputShapes, targetDevice, activationFusing] = obj.param;
+
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType] = convParams;
std::ostringstream result;
for (const auto& inputShape : inputShapes) {
@@ -374,19 +349,12 @@ public:
protected:
void SetUp() override {
- convSpecificParams convParams;
- std::vector<InputShape> inputShapes;
- auto model_type = ov::element::dynamic;
- bool activationFusing;
- std::tie(convParams, model_type, inputShapes, targetDevice, activationFusing) = this->GetParam();
+ const auto& [convParams, model_type, inputShapes, _targetDevice, activationFusing] = this->GetParam();
+ targetDevice = _targetDevice;
init_input_shapes({inputShapes});
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd;
- size_t convOutChannels;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType) = convParams;
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType] = convParams;
ov::ParameterVector inputParams;
for (auto&& shape : inputDynamicShapes)
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/convolution_backprop_data.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/convolution_backprop_data.cpp
index 98176acfc9b..4e611aba12e 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/convolution_backprop_data.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/convolution_backprop_data.cpp
@@ -31,23 +31,11 @@ class DeconvolutionLayerGPUTest : public testing::WithParamInterface<DeconvLayer
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<DeconvLayerTestParamsSet> obj) {
- convBackpropDataSpecificParams basicParamsSet;
- DeconvInputData inputData;
- ov::element::Type model_type;
- std::string targetDevice;
- std::map<std::string, std::string> additionalConfig;
- std::tie(basicParamsSet, inputData, model_type, targetDevice, additionalConfig) = obj.param;
-
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd, outPadding;
- size_t convOutChannels;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType, outPadding) = basicParamsSet;
+ const auto& [basicParamsSet, inputData, model_type, targetDevice, additionalConfig] = obj.param;
+
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType, outPadding] = basicParamsSet;
- InputShape inputShape;
- ov::test::utils::InputLayerType outShapeType;
- std::vector<std::vector<int32_t>> outShapeData;
- std::tie(inputShape, outShapeType, outShapeData) = inputData;
+ const auto& [inputShape, outShapeType, outShapeData] = inputData;
std::ostringstream result;
result << "IS=";
@@ -150,14 +138,12 @@ public:
protected:
void SetUp() override {
- convBackpropDataSpecificParams basicParamsSet;
- DeconvInputData inputData;
- std::map<std::string, std::string> additionalConfig;
- std::tie(basicParamsSet, inputData, model_type, targetDevice, additionalConfig) = this->GetParam();
-
- InputShape inputShape;
- ov::test::utils::InputLayerType outShapeType;
- std::tie(inputShape, outShapeType, outShapeData) = inputData;
+ const auto& [basicParamsSet, inputData, _model_type, _targetDevice, additionalConfig] = this->GetParam();
+ model_type = _model_type;
+ targetDevice = _targetDevice;
+
+ const auto& [inputShape, outShapeType, _outShapeData] = inputData;
+ outShapeData = _outShapeData;
std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, padType, outPadding) = basicParamsSet;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/ctc_greedy_decoder.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/ctc_greedy_decoder.cpp
index c4326f2d55b..ce6bc90f5a1 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/ctc_greedy_decoder.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/ctc_greedy_decoder.cpp
@@ -25,11 +25,7 @@ class CTCGreedyDecoderLayerGPUTest
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<ctcGreedyDecoderParams>& obj) {
- ov::element::Type model_type;
- InputShape input_shape;
- std::string targetDevice;
- bool merge_repeated;
- std::tie(model_type, input_shape, merge_repeated, targetDevice) = obj.param;
+ const auto& [model_type, input_shape, merge_repeated, targetDevice] = obj.param;
std::ostringstream result;
const char separator = '_';
@@ -48,10 +44,8 @@ public:
}
protected:
void SetUp() override {
- ov::element::Type model_type;
- InputShape input_shape;
- bool merge_repeated;
- std::tie(model_type, input_shape, merge_repeated, targetDevice) = GetParam();
+ const auto& [model_type, input_shape, merge_repeated, _targetDevice] = GetParam();
+ targetDevice = _targetDevice;
inputDynamicShapes = {input_shape.first, {}};
for (size_t i = 0; i < input_shape.second.size(); ++i) {
targetStaticShapes.push_back({input_shape.second[i], {}});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/ctc_greedy_decoder_seq_len.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/ctc_greedy_decoder_seq_len.cpp
index 84c627153b8..5ad35dcbf05 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/ctc_greedy_decoder_seq_len.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/ctc_greedy_decoder_seq_len.cpp
@@ -32,19 +32,7 @@ class CTCGreedyDecoderSeqLenLayerGPUTest
virtual public SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<ctcGreedyDecoderSeqLenParams>& obj) {
- InputShape inputShape;
- int sequenceLengths;
- ov::element::Type dataPrecision, indicesPrecision;
- int blankIndex;
- bool mergeRepeated;
- std::string targetDevice;
- std::tie(inputShape,
- sequenceLengths,
- dataPrecision,
- indicesPrecision,
- blankIndex,
- mergeRepeated,
- targetDevice) = obj.param;
+ const auto& [inputShape, sequenceLengths, dataPrecision, indicesPrecision, blankIndex, mergeRepeated, targetDevice] = obj.param;
std::ostringstream result;
@@ -65,18 +53,9 @@ public:
protected:
void SetUp() override {
- InputShape inputShape;
- int sequenceLengths;
- ov::element::Type model_type, indices_type;
- int blankIndex;
- bool mergeRepeated;
- std::tie(inputShape,
- sequenceLengths,
- model_type,
- indices_type,
- blankIndex,
- mergeRepeated,
- targetDevice) = GetParam();
+ const auto& [inputShape, sequenceLengths, model_type, indices_type, _blankIndex, mergeRepeated, _targetDevice] = GetParam();
+ auto blankIndex = _blankIndex;
+ targetDevice = _targetDevice;
inputDynamicShapes = {inputShape.first, {}};
for (size_t i = 0; i < inputShape.second.size(); ++i) {
targetStaticShapes.push_back({inputShape.second[i], {}});
@@ -84,7 +63,7 @@ protected:
ov::ParameterVector params {std::make_shared<ov::op::v0::Parameter>(model_type, inputDynamicShapes.front())};
- const auto sequenceLenNode = [&] {
+ const auto sequenceLenNode = [&, sequenceLengths = sequenceLengths, indices_type = indices_type] {
const size_t B = targetStaticShapes[0][0][0];
const size_t T = targetStaticShapes[0][0][1];
@@ -107,7 +86,7 @@ protected:
int C = targetStaticShapes[0][0][2];
blankIndex = std::min(blankIndex, C - 1);
- const auto blankIndexNode = [&] {
+ const auto blankIndexNode = [&, indices_type = indices_type] {
if (indices_type == ov::element::i32) {
const auto blankIdxDataI32 = std::vector<int32_t>{blankIndex};
return std::make_shared<ov::op::v0::Constant>(indices_type, ov::Shape{1}, blankIdxDataI32);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/cum_sum.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/cum_sum.cpp
index 6664c8f5026..878857e36de 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/cum_sum.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/cum_sum.cpp
@@ -25,12 +25,7 @@ class CumSumLayerGPUTest : public testing::WithParamInterface<CumSumLayerGPUPara
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<CumSumLayerGPUParamSet> obj) {
- ov::element::Type model_type;
- InputShape shapes;
- std::int64_t axis;
- bool exclusive;
- bool reverse;
- std::tie(model_type, shapes, axis, exclusive, reverse) = obj.param;
+ const auto& [model_type, shapes, axis, exclusive, reverse] = obj.param;
std::ostringstream results;
results << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -47,12 +42,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ov::element::Type model_type;
- InputShape shapes;
- std::int64_t axis;
- bool exclusive;
- bool reverse;
- std::tie(model_type, shapes, axis, exclusive, reverse) = this->GetParam();
+ const auto& [model_type, shapes, axis, exclusive, reverse] = this->GetParam();
init_input_shapes({shapes});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/depth_to_space.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/depth_to_space.cpp
index b291aeaff1c..f45b0dd192c 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/depth_to_space.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/depth_to_space.cpp
@@ -25,11 +25,7 @@ class DepthToSpaceLayerGPUTest : public testing::WithParamInterface<DepthToSpace
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<DepthToSpaceLayerGPUTestParams> obj) {
- InputShape shapes;
- ov::element::Type inType;
- DepthToSpace::DepthToSpaceMode mode;
- std::size_t blockSize;
- std::tie(shapes, inType, mode, blockSize) = obj.param;
+ const auto& [shapes, inType, mode, blockSize] = obj.param;
std::ostringstream results;
results << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -55,10 +51,8 @@ public:
protected:
void SetUp() override {
- InputShape shapes;
- ov::op::v0::DepthToSpace::DepthToSpaceMode mode;
- std::size_t blockSize;
- std::tie(shapes, inType, mode, blockSize) = this->GetParam();
+ const auto& [shapes, _inType, mode, blockSize] = this->GetParam();
+ inType = _inType;
targetDevice = ov::test::utils::DEVICE_GPU;
init_input_shapes({shapes});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/detection_output.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/detection_output.cpp
index 8ddfabd9bcd..cf35f7fe71e 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/detection_output.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/detection_output.cpp
@@ -61,13 +61,10 @@ class DetectionOutputLayerGPUTest : public testing::WithParamInterface<Detection
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<DetectionOutputGPUTestParams> obj) {
- DetectionOutputAttributes commonAttrs;
- ParamsWhichSizeDependsDynamic specificAttrs;
ov::op::v0::DetectionOutput::Attributes attrs;
- size_t batch;
- bool replaceDynamicShapesToIntervals;
- std::string targetDevice;
- std::tie(commonAttrs, specificAttrs, batch, attrs.objectness_score, replaceDynamicShapesToIntervals, targetDevice) = obj.param;
+
+ const auto& [commonAttrs, specificAttrs, batch, _objectness_score, replaceDynamicShapesToIntervals, targetDevice] = obj.param;
+ attrs.objectness_score = _objectness_score;
std::tie(attrs.num_classes, attrs.background_label_id, attrs.top_k, attrs.keep_top_k, attrs.code_type, attrs.nms_threshold, attrs.confidence_threshold,
attrs.clip_after_nms, attrs.clip_before_nms, attrs.decrease_label_id) = commonAttrs;
@@ -182,11 +179,9 @@ public:
protected:
void SetUp() override {
- DetectionOutputAttributes commonAttrs;
- ParamsWhichSizeDependsDynamic specificAttrs;
- size_t batch;
- bool replaceDynamicShapesToIntervals;
- std::tie(commonAttrs, specificAttrs, batch, attrs.objectness_score, replaceDynamicShapesToIntervals, targetDevice) = this->GetParam();
+ const auto& [commonAttrs, specificAttrs, batch, _objectness_score, replaceDynamicShapesToIntervals, _targetDevice] = this->GetParam();
+ attrs.objectness_score = _objectness_score;
+ targetDevice = _targetDevice;
std::tie(attrs.num_classes, attrs.background_label_id, attrs.top_k, attrs.keep_top_k, attrs.code_type, attrs.nms_threshold, attrs.confidence_threshold,
attrs.clip_after_nms, attrs.clip_before_nms, attrs.decrease_label_id) = commonAttrs;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/dft.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/dft.cpp
index 6ed96077444..163c758feda 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/dft.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/dft.cpp
@@ -30,17 +30,8 @@ class DFTLayerGPUTest : public testing::WithParamInterface<std::tuple<ov::elemen
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<std::tuple<ov::element::Type, DFTLayerGPUTestParams>> obj) {
- ov::element::Type precision;
- DFTLayerGPUTestParams params;
- std::vector<InputShape> shapes;
- std::vector<std::vector<int64_t>> axes;
- std::vector<std::vector<int64_t>> signalSizes;
- bool inverse, real;
- bool constAxes, constSignalSizes;
- std::string targetDevice;
-
- std::tie(precision, params) = obj.param;
- std::tie(shapes, axes, signalSizes, inverse, real, constAxes, constSignalSizes, targetDevice) = params;
+ const auto& [precision, params] = obj.param;
+ const auto& [shapes, axes, signalSizes, inverse, real, constAxes, constSignalSizes, targetDevice] = params;
std::ostringstream result;
result << "prec=" << precision;
@@ -79,14 +70,15 @@ public:
protected:
void SetUp() override {
- ov::element::Type precision;
- DFTLayerGPUTestParams params;
- std::vector<InputShape> shapes;
- bool inverse, real;
inputIdx = 0;
- std::tie(precision, params) = GetParam();
- std::tie(shapes, axes, signalSizes, inverse, real, constAxes, constSignalSizes, targetDevice) = params;
+ const auto& [precision, params] = GetParam();
+ const auto& [shapes, _axes, _signalSizes, inverse, real, _constAxes, _constSignalSizes, _targetDevice] = params;
+ axes = _axes;
+ signalSizes = _signalSizes;
+ constAxes = _constAxes;
+ constSignalSizes = _constSignalSizes;
+ targetDevice = _targetDevice;
if (shapes.size() > 1) {
ASSERT_EQ(shapes[0].second.size(), shapes[1].second.size());
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather.cpp
index 1f32a7356a4..30de4249af3 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather.cpp
@@ -32,12 +32,7 @@ class GatherGPUTest : public testing::WithParamInterface<GatherGPUTestParams>,
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<GatherGPUTestParams> obj) {
- GatherShapeParams Shapes;
- ov::element::Type model_type;
- bool isIndicesConstant;
- bool isAxisConstant;
-
- std::tie(Shapes, model_type, isIndicesConstant, isAxisConstant) = obj.param;
+ const auto& [Shapes, model_type, isIndicesConstant, isAxisConstant] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -65,13 +60,9 @@ public:
protected:
void SetUp() override {
- GatherShapeParams Shapes;
- ov::element::Type model_type;
- bool isAxisConstant;
- bool isIndicesConstant;
const auto int_model_type = ov::element::i32;
- std::tie(Shapes, model_type, isIndicesConstant, isAxisConstant) = this->GetParam();
+ const auto& [Shapes, model_type, isIndicesConstant, isAxisConstant] = this->GetParam();
const int axis = Shapes.axis;
const int batchDims = Shapes.batch_dims;
targetDevice = ov::test::utils::DEVICE_GPU;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_elements.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_elements.cpp
index 804f6d42a6d..d12ae0307c2 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_elements.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_elements.cpp
@@ -24,11 +24,7 @@ class GatherElementsGPUTest : public testing::WithParamInterface<GatherElementsP
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<GatherElementsParams>& obj) {
- std::vector<InputShape> shapes;
- ov::element::Type data_type, indices_type;
- int axis;
- std::string device;
- std::tie(shapes, axis, data_type, indices_type, device) = obj.param;
+ const auto& [shapes, axis, data_type, indices_type, device] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -68,10 +64,8 @@ public:
protected:
void SetUp() override {
- std::vector<InputShape> shapes;
- ov::element::Type data_type, indices_type;
- int axis;
- std::tie(shapes, axis, data_type, indices_type, targetDevice) = this->GetParam();
+ const auto& [shapes, axis, data_type, indices_type, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
init_input_shapes(shapes);
ov::ParameterVector params = {
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_nd.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_nd.cpp
index f7af7797586..fd60e9cb3ee 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_nd.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_nd.cpp
@@ -31,11 +31,7 @@ class GatherNDGPUTest : public testing::WithParamInterface<GatherNDGPUTestParams
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<GatherNDGPUTestParams> obj) {
- GatherNDShapeParams Shapes;
- ov::element::Type model_type;
- bool isIndicesConstant;
-
- std::tie(Shapes, model_type, isIndicesConstant) = obj.param;
+ const auto& [Shapes, model_type, isIndicesConstant] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -61,12 +57,9 @@ public:
protected:
void SetUp() override {
- GatherNDShapeParams Shapes;
- ov::element::Type model_type;
- bool isIndicesConstant;
const auto intInputsPrecision = ov::element::i32;
- std::tie(Shapes, model_type, isIndicesConstant) = this->GetParam();
+ const auto& [Shapes, model_type, isIndicesConstant] = this->GetParam();
const int batchDims = Shapes.batch_dims;
targetDevice = ov::test::utils::DEVICE_GPU;
std::shared_ptr<ov::Node> indicesNode;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_tree.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_tree.cpp
index 832229fdf44..71eb2b226b2 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_tree.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/gather_tree.cpp
@@ -25,12 +25,7 @@ class GatherTreeLayerGPUTest : public testing::WithParamInterface<GatherTreeGPUT
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<GatherTreeGPUTestParams> &obj) {
- InputShape inputShape;
- ov::element::Type_t model_type;
- ov::test::utils::InputLayerType secondaryInputType;
- std::string targetName;
-
- std::tie(inputShape, secondaryInputType, model_type, targetName) = obj.param;
+ const auto& [inputShape, secondaryInputType, model_type, targetName] = obj.param;
std::ostringstream result;
result << "IS=" << ov::test::utils::partialShape2str({inputShape.first}) << "_";
@@ -47,11 +42,8 @@ public:
protected:
void SetUp() override {
- InputShape inputShape;
- ov::element::Type model_type;
- ov::test::utils::InputLayerType secondaryInputType;
-
- std::tie(inputShape, secondaryInputType, model_type, targetDevice) = this->GetParam();
+ const auto& [inputShape, secondaryInputType, model_type, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
InputShape parentShape{inputShape};
InputShape::first_type maxSeqLenFirst;
if (inputShape.first.is_dynamic()) {
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/grid_sample.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/grid_sample.cpp
index 6b0251cb21c..49ffc2e8368 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/grid_sample.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/grid_sample.cpp
@@ -28,13 +28,7 @@ class GridSampleLayerTestGPU : public testing::WithParamInterface<GridSampleLaye
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<GridSampleLayerTestGPUParams> obj) {
- std::vector<InputShape> inputShapes;
- GridSample::InterpolationMode interpolateMode;
- GridSample::PaddingMode paddingMode;
- bool alignCorners;
- ov::element::Type dataPrecision, gridPrecision;
-
- std::tie(inputShapes, interpolateMode, paddingMode, alignCorners, dataPrecision, gridPrecision) = obj.param;
+ const auto& [inputShapes, interpolateMode, paddingMode, alignCorners, dataPrecision, gridPrecision] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -64,13 +58,8 @@ public:
protected:
void SetUp() override {
abs_threshold = 0.0005;
- std::vector<InputShape> inputShapes;
- GridSample::InterpolationMode interpolateMode;
- GridSample::PaddingMode paddingMode;
- bool alignCorners;
- ov::element::Type dataPrecision, gridPrecision;
- std::tie(inputShapes, interpolateMode, paddingMode, alignCorners, dataPrecision, gridPrecision) = this->GetParam();
+ const auto& [inputShapes, interpolateMode, paddingMode, alignCorners, dataPrecision, gridPrecision] = this->GetParam();
targetDevice = ov::test::utils::DEVICE_GPU;
init_input_shapes(inputShapes);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/group_convolution_backprop_data.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/group_convolution_backprop_data.cpp
index 8ddbf63feb7..367edff78c6 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/group_convolution_backprop_data.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/group_convolution_backprop_data.cpp
@@ -31,25 +31,13 @@ class GroupDeconvolutionLayerGPUTest : public testing::WithParamInterface<GroupD
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<GroupDeconvLayerTestParamsSet> obj) {
- groupConvBackpropSpecificParams basicParamsSet;
- DeconvInputData inputData;
- ov::element::Type prec;
- std::string targetDevice;
- std::map<std::string, std::string> additionalConfig;
- std::tie(basicParamsSet, inputData, prec, targetDevice, additionalConfig) = obj.param;
-
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd, outPadding;
- size_t convOutChannels, groupNum;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, groupNum, padType, outPadding) = basicParamsSet;
-
- InputShape inputShape;
- ov::test::utils::InputLayerType outShapeType;
- std::vector<std::vector<int32_t>> outShapeData;
- std::tie(inputShape, outShapeType, outShapeData) = inputData;
-
- std::ostringstream result;
+ const auto& [basicParamsSet, inputData, prec, targetDevice, additionalConfig] = obj.param;
+
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, groupNum, padType, outPadding] = basicParamsSet;
+
+ const auto& [inputShape, outShapeType, outShapeData] = inputData;
+
+ std::ostringstream result;
result << "IS=";
result << ov::test::utils::partialShape2str({inputShape.first}) << "_";
result << "TS=";
@@ -196,14 +184,12 @@ public:
protected:
void SetUp() override {
- groupConvBackpropSpecificParams basicParamsSet;
- DeconvInputData inputData;
- std::map<std::string, std::string> additionalConfig;
- std::tie(basicParamsSet, inputData, prec, targetDevice, additionalConfig) = this->GetParam();
-
- InputShape inputShape;
- ov::test::utils::InputLayerType outShapeType;
- std::tie(inputShape, outShapeType, outShapeData) = inputData;
+ const auto& [basicParamsSet, inputData, _prec, _targetDevice, additionalConfig] = this->GetParam();
+ prec = _prec;
+ targetDevice = _targetDevice;
+
+ const auto& [inputShape, outShapeType, _outShapeData] = inputData;
+ outShapeData = _outShapeData;
std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, groupNum, padType, outPadding) = basicParamsSet;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/groupconvolution.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/groupconvolution.cpp
index 2b3a4e5684e..fedb422bd4a 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/groupconvolution.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/groupconvolution.cpp
@@ -26,18 +26,9 @@ class GroupConvolutionLayerGPUTestDynamic : public testing::WithParamInterface<g
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<groupConvLayerTestParamsSet>& obj) {
- groupConvSpecificParams groupConvParams;
- ov::element::Type model_type;
- InputShape inputShape;
- std::string targetDevice;
- std::tie(groupConvParams, model_type, inputShape, targetDevice) = obj.param;
-
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd;
- size_t convOutChannels;
- size_t numGroups;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, numGroups, padType) = groupConvParams;
+ const auto& [groupConvParams, model_type, inputShape, targetDevice] = obj.param;
+
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, numGroups, padType] = groupConvParams;
std::ostringstream result;
result << "IS=";
@@ -63,19 +54,12 @@ public:
protected:
void SetUp() override {
- groupConvSpecificParams groupConvParams;
- InputShape inputShape;
- auto model_type = ov::element::dynamic;
- std::tie(groupConvParams, model_type, inputShape, targetDevice) = this->GetParam();
+ const auto& [groupConvParams, model_type, inputShape, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
init_input_shapes({inputShape});
- ov::op::PadType padType;
- std::vector<size_t> kernel, stride, dilation;
- std::vector<ptrdiff_t> padBegin, padEnd;
- size_t convOutChannels;
- size_t numGroups;
- std::tie(kernel, stride, padBegin, padEnd, dilation, convOutChannels, numGroups, padType) = groupConvParams;
+ const auto& [kernel, stride, padBegin, padEnd, dilation, convOutChannels, numGroups, padType] = groupConvParams;
ov::ParameterVector inputParams;
for (auto&& shape : inputDynamicShapes)
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/interpolate.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/interpolate.cpp
index 16e25549d17..41d7ba7c54f 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/interpolate.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/interpolate.cpp
@@ -39,29 +39,12 @@ class InterpolateLayerGPUTest : public testing::WithParamInterface<InterpolateLa
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<InterpolateLayerGPUTestParamsSet> obj) {
- InterpolateSpecificParams specificParams;
- ShapeParams shapeParams;
- ov::element::Type prec;
- bool useInterpolateV11;
std::map<std::string, std::string> additionalConfig;
- std::tie(specificParams, shapeParams, prec, useInterpolateV11) = obj.param;
-
- ov::op::v4::Interpolate::InterpolateMode mode;
- ov::op::v4::Interpolate::CoordinateTransformMode transfMode;
- ov::op::v4::Interpolate::NearestMode nearMode;
- bool antiAlias;
- std::vector<size_t> padBegin;
- std::vector<size_t> padEnd;
- double cubeCoef;
- std::tie(mode, transfMode, nearMode, antiAlias, padBegin, padEnd, cubeCoef) = specificParams;
-
- ov::op::v4::Interpolate::ShapeCalcMode shapeCalcMode;
- InputShape inputShapes;
- ov::test::utils::InputLayerType sizesInputType;
- ov::test::utils::InputLayerType scalesInputType;
- std::vector<std::vector<float>> shapeDataForInput;
- std::vector<int64_t> axes;
- std::tie(shapeCalcMode, inputShapes, sizesInputType, scalesInputType, shapeDataForInput, axes) = shapeParams;
+ const auto& [specificParams, shapeParams, prec, useInterpolateV11] = obj.param;
+
+ const auto& [mode, transfMode, nearMode, antiAlias, padBegin, padEnd, cubeCoef] = specificParams;
+
+ const auto& [shapeCalcMode, inputShapes, sizesInputType, scalesInputType, shapeDataForInput, axes] = shapeParams;
std::ostringstream result;
using ov::operator<<;
@@ -164,27 +147,12 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- InterpolateSpecificParams specificParams;
- ShapeParams shapeParams;
- ov::element::Type ngPrc;
- bool useInterpolateV11;
- std::tie(specificParams, shapeParams, ngPrc, useInterpolateV11) = this->GetParam();
-
- ov::op::v4::Interpolate::InterpolateMode mode;
- ov::op::v4::Interpolate::CoordinateTransformMode transfMode;
- ov::op::v4::Interpolate::NearestMode nearMode;
- bool antiAlias;
- std::vector<size_t> padBegin;
- std::vector<size_t> padEnd;
- double cubeCoef;
- std::tie(mode, transfMode, nearMode, antiAlias, padBegin, padEnd, cubeCoef) = specificParams;
-
- InputShape dataShape;
- ov::test::utils::InputLayerType sizesInputType;
- ov::test::utils::InputLayerType scalesInputType;
- std::vector<std::vector<float>> shapeDataForInput;
- std::vector<int64_t> axes;
- std::tie(shapeCalcMode, dataShape, sizesInputType, scalesInputType, shapeDataForInput, axes) = shapeParams;
+ const auto& [specificParams, shapeParams, ngPrc, useInterpolateV11] = this->GetParam();
+
+ const auto& [mode, transfMode, nearMode, antiAlias, padBegin, padEnd, cubeCoef] = specificParams;
+
+ const auto& [_shapeCalcMode, dataShape, sizesInputType, scalesInputType, shapeDataForInput, axes] = shapeParams;
+ shapeCalcMode = _shapeCalcMode;
if (shapeCalcMode == ov::op::v4::Interpolate::ShapeCalcMode::SCALES) {
scales = shapeDataForInput;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/lstmcell.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/lstmcell.cpp
index 886508fec0e..cd08fe68034 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/lstmcell.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/lstmcell.cpp
@@ -30,16 +30,7 @@ class LSTMCellLayerGPUTest : public testing::WithParamInterface<LSTMCellLayerPar
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<LSTMCellLayerParamSet>& obj) {
- size_t batch;
- size_t hidden_size;
- size_t input_size;
- InputLayerType WType;
- InputLayerType RType;
- InputLayerType BType;
- ov::element::Type model_type;
- std::string targetDevice;
- std::tie(batch, hidden_size, input_size, WType, RType, BType,
- model_type, targetDevice) = obj.param;
+ const auto& [batch, hidden_size, input_size, WType, RType, BType, model_type, targetDevice] = obj.param;
std::ostringstream result;
result << "batch=" << batch << "_";
result << "hidden_size=" << hidden_size << "_";
@@ -54,15 +45,8 @@ public:
protected:
void SetUp() override {
- size_t batch;
- size_t hidden_size;
- size_t input_size;
- InputLayerType WType;
- InputLayerType RType;
- InputLayerType BType;
- ov::element::Type model_type;
- std::tie(batch, hidden_size, input_size, WType, RType, BType,
- model_type, targetDevice) = this->GetParam();
+ const auto& [batch, hidden_size, input_size, WType, RType, BType, model_type, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
int32_t is = input_size;
int32_t hs = hidden_size;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/matmul.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/matmul.cpp
index a9bb69b0369..7eb579f1961 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/matmul.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/matmul.cpp
@@ -35,14 +35,7 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<MatMulLayerTestParamsSet>& obj) {
MatMulLayerTestParamsSet basicParamsSet = obj.param;
- ov::element::Type model_type;
- ov::element::Type inType, outType;
- ShapeRelatedParams shape_related_params;
- ov::test::utils::InputLayerType secondary_input_type;
- std::string targetDevice;
- std::map<std::string, std::string> additional_config;
- std::tie(shape_related_params, model_type, inType, outType, secondary_input_type, targetDevice, additional_config) =
- basicParamsSet;
+ const auto& [shape_related_params, model_type, inType, outType, secondary_input_type, targetDevice, additional_config] = basicParamsSet;
std::ostringstream result;
result << "IS=";
@@ -86,12 +79,10 @@ protected:
void SetUp() override {
MatMulLayerTestParamsSet basicParamsSet = this->GetParam();
- ShapeRelatedParams shape_related_params;
- ov::element::Type model_type;
- ov::test::utils::InputLayerType secondary_input_type;
- std::map<std::string, std::string> additional_config;
-
- std::tie(shape_related_params, model_type, inType, outType, secondary_input_type, targetDevice, additional_config) = basicParamsSet;
+ const auto& [shape_related_params, model_type, _inType, _outType, secondary_input_type, _targetDevice, additional_config] = basicParamsSet;
+ inType = _inType;
+ outType = _outType;
+ targetDevice = _targetDevice;
init_input_shapes(shape_related_params.inputShapes);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/mvn.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/mvn.cpp
index 1ff9fe2378c..19c8179bdfc 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/mvn.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/mvn.cpp
@@ -28,16 +28,9 @@ class MvnLayerGPUTest : public testing::WithParamInterface<MvnLayerGPUTestParamS
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<MvnLayerGPUTestParamSet> obj) {
- basicGPUMvnParams basicParamsSet;
- ov::element::Type inputPrecision;
- std::tie(basicParamsSet, inputPrecision) = obj.param;
+ const auto& [basicParamsSet, inputPrecision] = obj.param;
- InputShape inputShapes;
- ov::element::Type netPrecision;
- std::vector<int> axes;
- bool normalizeVariance;
- double eps;
- std::tie(inputShapes, netPrecision, axes, normalizeVariance, eps) = basicParamsSet;
+ const auto& [inputShapes, netPrecision, axes, normalizeVariance, eps] = basicParamsSet;
std::ostringstream result;
result << "IS=" << ov::test::utils::partialShape2str({inputShapes.first}) << "_";
@@ -57,16 +50,9 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- basicGPUMvnParams basicParamsSet;
- ov::element::Type inPrc;
- std::tie(basicParamsSet, inPrc) = this->GetParam();
+ const auto& [basicParamsSet, inPrc] = this->GetParam();
- InputShape inputShapes;
- ov::element::Type netPrecision;
- std::vector<int> axes;
- bool normalizeVariance;
- double eps;
- std::tie(inputShapes, netPrecision, axes, normalizeVariance, eps) = basicParamsSet;
+ const auto& [inputShapes, netPrecision, axes, normalizeVariance, eps] = basicParamsSet;
init_input_shapes({inputShapes});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/non_max_suppression.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/non_max_suppression.cpp
index d3db2a32cad..8eca863213e 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/non_max_suppression.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/non_max_suppression.cpp
@@ -49,27 +49,14 @@ class NmsLayerGPUTest : public testing::WithParamInterface<NmsLayerTestParams>,
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<NmsLayerTestParams>& obj) {
- InputShapeParams inShapeParams;
- InputPrecisions inPrecisions;
- int32_t maxOutBoxesPerClass;
- ThresholdValues thrValues;
- float iouThr, scoreThr, softNmsSigma;
- ov::op::v9::NonMaxSuppression::BoxEncodingType boxEncoding;
- bool sortResDescend;
- ov::element::Type outType;
- std::string targetDevice;
- std::map<std::string, std::string> additionalConfig;
- std::tie(inShapeParams, inPrecisions, maxOutBoxesPerClass, thrValues, boxEncoding, sortResDescend, outType,
- targetDevice, additionalConfig) = obj.param;
-
- std::tie(iouThr, scoreThr, softNmsSigma) = thrValues;
-
- ov::element::Type paramsPrec, maxBoxPrec, thrPrec;
- std::tie(paramsPrec, maxBoxPrec, thrPrec) = inPrecisions;
-
- std::vector<ov::Dimension> bounds;
- std::vector<TargetShapeParams> targetShapes;
- std::tie(bounds, targetShapes) = inShapeParams;
+ const auto& [inShapeParams, inPrecisions, maxOutBoxesPerClass, thrValues, boxEncoding, sortResDescend, outType, targetDevice, additionalConfig] =
+ obj.param;
+
+ const auto& [iouThr, scoreThr, softNmsSigma] = thrValues;
+
+ const auto& [paramsPrec, maxBoxPrec, thrPrec] = inPrecisions;
+
+ const auto& [bounds, targetShapes] = inShapeParams;
std::ostringstream result;
if (!bounds.empty()) {
@@ -77,8 +64,7 @@ public:
result << "BatchesBounds=" << bounds[BATCHES] << "_BoxesBounds=" << bounds[BOXES] << "_ClassesBounds=" << bounds[CLASSES] << "_";
}
for (const auto &ts : targetShapes) {
- size_t numBatches, numBoxes, numClasses;
- std::tie(numBatches, numBoxes, numClasses) = ts;
+ const auto& [numBatches, numBoxes, numClasses] = ts;
result << "(nB=" << numBatches << "_nBox=" << numBoxes << "_nC=" << numClasses << ")_";
}
result << "paramsPrec=" << paramsPrec << "_maxBoxPrec=" << maxBoxPrec << "_thrPrec=" << thrPrec << "_";
@@ -115,44 +101,36 @@ public:
bboxes = input;
}
}
- size_t numBatches, numBoxes, numClasses;
- std::tie(numBatches, numBoxes, numClasses) = targetInDims[inferRequestNum];
+
+ const auto& [numBatches, numBoxes, numClasses] = targetInDims[inferRequestNum];
ov::test::compare_b_boxes(expected, actual, bboxes.second, numBatches, numBoxes);
inferRequestNum++;
}
protected:
void SetUp() override {
- InputShapeParams inShapeParams;
- InputPrecisions inPrecisions;
- ThresholdValues thrValues;
- float iouThr, scoreThr, softNmsSigma;
- ov::op::v9::NonMaxSuppression::BoxEncodingType boxEncoding;
- bool sortResDescend;
- ov::element::Type outType;
- std::map<std::string, std::string> additionalConfig;
- std::tie(inShapeParams, inPrecisions, maxOutBoxesPerClass, thrValues, boxEncoding, sortResDescend, outType,
- targetDevice, additionalConfig) = this->GetParam();
- ov::element::Type paramsPrec, maxBoxPrec, thrPrec;
- std::tie(paramsPrec, maxBoxPrec, thrPrec) = inPrecisions;
-
- std::tie(iouThr, scoreThr, softNmsSigma) = thrValues;
-
- std::vector<ov::Dimension> bounds;
- std::tie(bounds, targetInDims) = inShapeParams;
+ const auto& [inShapeParams, inPrecisions, _maxOutBoxesPerClass, thrValues, boxEncoding, sortResDescend, outType, _targetDevice, additionalConfig] =
+ this->GetParam();
+ maxOutBoxesPerClass = _maxOutBoxesPerClass;
+ targetDevice = _targetDevice;
+
+ const auto& [paramsPrec, maxBoxPrec, thrPrec] = inPrecisions;
+
+ const auto& [iouThr, scoreThr, softNmsSigma] = thrValues;
+
+ const auto& [bounds, _targetInDims] = inShapeParams;
+ targetInDims = _targetInDims;
if (!bounds.empty()) {
inputDynamicShapes = std::vector<ov::PartialShape>{{bounds[BATCHES], bounds[BOXES], 4}, {bounds[BATCHES], bounds[CLASSES], bounds[BOXES]}};
} else {
- size_t batches, boxes, classes;
- std::tie(batches, boxes, classes) = targetInDims.front();
+ const auto& [batches, boxes, classes] = targetInDims.front();
ov::Dimension numBatches(batches), numBoxes(boxes), numClasses(classes);
inputDynamicShapes = std::vector<ov::PartialShape>{{numBatches, numBoxes, 4}, {numBatches, numClasses, numBoxes}};
}
for (const auto &ts : targetInDims) {
- size_t numBatches, numBoxes, numClasses;
- std::tie(numBatches, numBoxes, numClasses) = ts;
+ const auto& [numBatches, numBoxes, numClasses] = ts;
targetStaticShapes.push_back(std::vector<ov::Shape>{{numBatches, numBoxes, 4}, {numBatches, numClasses, numBoxes}});
}
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/normalize_l2.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/normalize_l2.cpp
index 14dcb81dd04..fee31c881b4 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/normalize_l2.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/normalize_l2.cpp
@@ -24,12 +24,7 @@ class NormalizeL2LayerGPUTest : public testing::WithParamInterface<NormalizeL2La
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<NormalizeL2LayerGPUTestParams> obj) {
- InputShape inputShapes;
- ov::element::Type netPrecision;
- std::vector<int64_t> axes;
- ov::op::EpsMode epsMode;
- float eps;
- std::tie(inputShapes, netPrecision, axes, epsMode, eps) = obj.param;
+ const auto& [inputShapes, netPrecision, axes, epsMode, eps] = obj.param;
std::ostringstream result;
result << "IS=" << ov::test::utils::partialShape2str({inputShapes.first}) << "_";
@@ -48,12 +43,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- InputShape inputShapes;
- ov::element::Type netPrecision;
- std::vector<int64_t> axes;
- ov::op::EpsMode epsMode;
- float eps;
- std::tie(inputShapes, netPrecision, axes, epsMode, eps) = this->GetParam();
+ const auto& [inputShapes, netPrecision, axes, epsMode, eps] = this->GetParam();
init_input_shapes({inputShapes});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/pad.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/pad.cpp
index c18f3bfb8fa..fe97f8d543e 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/pad.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/pad.cpp
@@ -27,13 +27,7 @@ class PadLayerGPUTest : public testing::WithParamInterface<PadLayerGPUTestParamS
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<PadLayerGPUTestParamSet> obj) {
- InputShape shapes;
- ov::element::Type model_type;
- std::vector<int64_t> padsBegin, padsEnd;
- ov::op::PadMode padMode;
- float argPadValue;
- std::vector<ov::test::utils::InputLayerType> inputLayerTypes;
- std::tie(shapes, model_type, padsBegin, padsEnd, argPadValue, inputLayerTypes, padMode) = obj.param;
+ const auto& [shapes, model_type, padsBegin, padsEnd, argPadValue, inputLayerTypes, padMode] = obj.param;
std::ostringstream results;
results << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -58,10 +52,11 @@ protected:
float argPadValue;
void SetUp() override {
- InputShape shapes;
- ov::op::PadMode padMode;
- std::vector<ov::test::utils::InputLayerType> inputLayerTypes;
- std::tie(shapes, inType, padsBegin, padsEnd, argPadValue, inputLayerTypes, padMode) = this->GetParam();
+ const auto& [shapes, _inType, _padsBegin, _padsEnd, _argPadValue, inputLayerTypes, padMode] = this->GetParam();
+ inType = _inType;
+ padsBegin = _padsBegin;
+ padsEnd = _padsEnd;
+ argPadValue = _argPadValue;
targetDevice = ov::test::utils::DEVICE_GPU;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/pooling.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/pooling.cpp
index 5a4faea32f0..d5fce131a04 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/pooling.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/pooling.cpp
@@ -24,18 +24,9 @@ class PoolingLayerGPUTest : public testing::WithParamInterface<poolLayerGpuTestP
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<poolLayerGpuTestParamsSet>& obj) {
- ov::test::poolSpecificParams basicParamsSet;
- InputShape inputShapes;
- ov::element::Type inPrc;
- std::tie(basicParamsSet, inputShapes, inPrc) = obj.param;
-
- ov::test::utils::PoolingTypes poolType;
- std::vector<size_t> kernel, stride;
- std::vector<size_t> padBegin, padEnd;
- ov::op::PadType padType;
- ov::op::RoundingType roundingType;
- bool excludePad;
- std::tie(poolType, kernel, stride, padBegin, padEnd, roundingType, padType, excludePad) = basicParamsSet;
+ const auto& [basicParamsSet, inputShapes, inPrc] = obj.param;
+
+ const auto& [poolType, kernel, stride, padBegin, padEnd, roundingType, padType, excludePad] = basicParamsSet;
std::ostringstream results;
results << "IS=(";
@@ -68,18 +59,9 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ov::test::poolSpecificParams basicParamsSet;
- InputShape inputShapes;
- ov::element::Type inPrc;
- std::tie(basicParamsSet, inputShapes, inPrc) = this->GetParam();
-
- ov::test::utils::PoolingTypes poolType;
- std::vector<size_t> kernel, stride;
- std::vector<size_t> padBegin, padEnd;
- ov::op::PadType padType;
- ov::op::RoundingType roundingType;
- bool excludePad;
- std::tie(poolType, kernel, stride, padBegin, padEnd, roundingType, padType, excludePad) = basicParamsSet;
+ const auto& [basicParamsSet, inputShapes, inPrc] = this->GetParam();
+
+ const auto& [poolType, kernel, stride, padBegin, padEnd, roundingType, padType, excludePad] = basicParamsSet;
init_input_shapes({inputShapes});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/prior_box.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/prior_box.cpp
index 516e51bd43a..d135e64e963 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/prior_box.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/prior_box.cpp
@@ -35,12 +35,7 @@ class PriorBoxLayerGPUTest : public testing::WithParamInterface<PriorBoxLayerGPU
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<PriorBoxLayerGPUTestParamsSet> obj) {
- InputShape input1Shape;
- InputShape input2Shape;
- ov::element::Type model_type;
- std::vector<float> max_size;
- priorbox_type priorboxType;
- std::tie(input1Shape, input2Shape, model_type, max_size, priorboxType) = obj.param;
+ const auto& [input1Shape, input2Shape, model_type, max_size, priorboxType] = obj.param;
std::ostringstream result;
switch (priorboxType) {
@@ -77,13 +72,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- auto model_type = ov::element::dynamic;
- InputShape input1Shape;
- InputShape input2Shape;
- std::vector<float> max_size;
- priorbox_type priorboxType;
- std::tie(input1Shape, input2Shape, model_type, max_size, priorboxType) = this->GetParam();
-
+ const auto& [input1Shape, input2Shape, model_type, max_size, priorboxType] = this->GetParam();
init_input_shapes({input1Shape, input2Shape});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/random_uniform.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/random_uniform.cpp
index 7fc1a726b79..6955f81281e 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/random_uniform.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/random_uniform.cpp
@@ -29,12 +29,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<RandomUnifromDynamicGPUTestParamsSet>& obj) {
RandomUnifromDynamicGPUTestParamsSet basicParamsSet = obj.param;
std::ostringstream result;
- std::vector<InputShape> input_shapes;
- std::pair<double, double> min_max_values;
- std::pair<uint64_t, uint64_t> seeds;
- ov::element::Type precision;
- std::string target_device;
- std::tie(input_shapes, min_max_values, seeds, precision, target_device) = basicParamsSet;
+
+ const auto& [input_shapes, min_max_values, seeds, precision, target_device] = basicParamsSet;
result << "shape=";
for (const auto& shape : input_shapes) {
@@ -122,10 +118,10 @@ protected:
void SetUp() override {
RandomUnifromDynamicGPUTestParamsSet basicParamsSet = this->GetParam();
- std::vector<InputShape> shapes;
- ov::element::Type netType;
- std::pair<uint64_t, uint64_t> seeds;
- std::tie(shapes, min_max_values, seeds, netType, targetDevice) = basicParamsSet;
+
+ const auto& [shapes, _min_max_values, seeds, netType, _targetDevice] = basicParamsSet;
+ min_max_values = _min_max_values;
+ targetDevice = _targetDevice;
init_input_shapes(shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/range.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/range.cpp
index 55983556212..18b2636a205 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/range.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/range.cpp
@@ -27,11 +27,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<RangeDynamicGPUTestParamsSet>& obj) {
RangeDynamicGPUTestParamsSet basicParamsSet = obj.param;
std::ostringstream result;
- std::vector<InputShape> inputShapes;
- std::vector<float> inputValues;
- ov::element::Type model_type;
- std::string targetDevice;
- std::tie(inputShapes, inputValues, model_type, targetDevice) = basicParamsSet;
+
+ const auto& [inputShapes, inputValues, model_type, targetDevice] = basicParamsSet;
result << "IS=";
for (const auto& shape : inputShapes) {
@@ -126,11 +123,11 @@ protected:
void SetUp() override {
RangeDynamicGPUTestParamsSet basicParamsSet = this->GetParam();
- std::vector<InputShape> inputShapes;
- std::vector<float> inputValues;
- ov::element::Type model_type;
+
ov::ParameterVector params;
- std::tie(inputShapes, inputValues, model_type, targetDevice) = basicParamsSet;
+ const auto& [inputShapes, inputValues, _model_type, _targetDevice] = basicParamsSet;
+ auto model_type = _model_type;
+ targetDevice = _targetDevice;
input_values = inputValues;
net_type = model_type;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/reduce.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/reduce.cpp
index c39f9a4bc83..dc711a5bb17 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/reduce.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/reduce.cpp
@@ -31,12 +31,7 @@ class ReduceLayerGPUTest : public testing::WithParamInterface<ReduceLayerTestPar
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<ReduceLayerTestParamSet>& obj) {
- ReduceInput input_data;
- ov::element::Type netType;
- ov::test::utils::ReductionType reductionType;
- bool keepDims;
- std::string targetDevice;
- std::tie(input_data, netType, reductionType, keepDims, targetDevice) = obj.param;
+ const auto& [input_data, netType, reductionType, keepDims, targetDevice] = obj.param;
std::vector<InputShape> inshapes = input_data.data_shape;
std::vector<int> axes = input_data.axes;
@@ -66,11 +61,8 @@ public:
protected:
void SetUp() override {
- ReduceInput input_data;
- ov::element::Type netPrecision;
- ov::test::utils::ReductionType reductionType;
- bool keepDims;
- std::tie(input_data, netPrecision, reductionType, keepDims, targetDevice) = this->GetParam();
+ const auto& [input_data, netPrecision, reductionType, keepDims, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
std::vector<InputShape> inputShapes = input_data.data_shape;
std::vector<int> axes = input_data.axes;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/region_yolo.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/region_yolo.cpp
index eda97b5aacb..b0376ddc804 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/region_yolo.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/region_yolo.cpp
@@ -34,12 +34,7 @@ class RegionYoloLayerGPUTest : public testing::WithParamInterface<RegionYoloGPUT
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<RegionYoloGPUTestParam> obj) {
- InputShape shapes;
- regionYoloAttributes attributes;
- std::vector<int64_t> mask;
- ov::element::Type model_type;
- std::string targetName;
- std::tie(shapes, attributes, mask, model_type, targetName) = obj.param;
+ const auto& [shapes, attributes, mask, model_type, targetName] = obj.param;
std::ostringstream result;
result << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -59,11 +54,8 @@ public:
protected:
void SetUp() override {
- InputShape shapes;
- regionYoloAttributes attributes;
- std::vector<int64_t> mask;
- ov::element::Type model_type;
- std::tie(shapes, attributes, mask, model_type, targetDevice) = this->GetParam();
+ const auto& [shapes, attributes, mask, model_type, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
init_input_shapes({ shapes });
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/reorg_yolo.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/reorg_yolo.cpp
index 8f3f4dbd96e..acbd2531fb1 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/reorg_yolo.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/reorg_yolo.cpp
@@ -24,11 +24,7 @@ class ReorgYoloLayerGPUTest : public testing::WithParamInterface<ReorgYoloGPUTes
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<ReorgYoloGPUTestParams> obj) {
- InputShape shapes;
- size_t stride;
- ov::element::Type model_type;
- std::string targetDev;
- std::tie(shapes, stride, model_type, targetDev) = obj.param;
+ const auto& [shapes, stride, model_type, targetDev] = obj.param;
std::ostringstream result;
result << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
for (const auto& item : shapes.second) {
@@ -42,10 +38,8 @@ public:
protected:
void SetUp() override {
- InputShape shapes;
- size_t stride;
- ov::element::Type model_type;
- std::tie(shapes, stride, model_type, targetDevice) = this->GetParam();
+ const auto& [shapes, stride, model_type, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
init_input_shapes({shapes});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/roi_pooling.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/roi_pooling.cpp
index dcbce03ee4b..69ec36218cc 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/roi_pooling.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/roi_pooling.cpp
@@ -35,17 +35,9 @@ class ROIPoolingLayerGPUTest : public testing::WithParamInterface<ROIPoolingGPUT
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<ROIPoolingGPUTestParams> obj) {
- ROIPoolingParams basic_params_set;
- ProposalGenerationMode prop_mode;
+ const auto& [basic_params_set, prop_mode] = obj.param;
- std::tie(basic_params_set, prop_mode) = obj.param;
-
- ROIPoolingShapes shapes;
- std::vector<size_t> pool_shape;
- float spatial_scale;
- ov::test::utils::ROIPoolingTypes pool_method;
- ov::element::Type model_type;
- std::tie(shapes, pool_shape, spatial_scale, pool_method, model_type) = basic_params_set;
+ const auto& [shapes, pool_shape, spatial_scale, pool_method, model_type] = basic_params_set;
std::ostringstream result;
result << "netPRC=" << model_type << "_";
@@ -162,16 +154,9 @@ protected:
}
void SetUp() override {
- ROIPoolingParams basic_params_set;
- ProposalGenerationMode prop_mode;
-
- std::tie(basic_params_set, prop_mode) = this->GetParam();
- ROIPoolingShapes shapes;
- std::vector<size_t> pool_shape;
- float spatial_scale;
- ov::test::utils::ROIPoolingTypes pool_method;
- ov::element::Type model_type;
- std::tie(shapes, pool_shape, spatial_scale, pool_method, model_type) = basic_params_set;
+ const auto& [basic_params_set, prop_mode] = this->GetParam();
+
+ const auto& [shapes, pool_shape, spatial_scale, pool_method, model_type] = basic_params_set;
targetDevice = ov::test::utils::DEVICE_GPU;
init_input_shapes(shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/roll.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/roll.cpp
index 63215669425..373ca243f59 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/roll.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/roll.cpp
@@ -29,12 +29,7 @@ class RollLayerGPUTest : public testing::WithParamInterface<RollGPUTestParams>,
virtual public SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<RollGPUTestParams> obj) {
- InputShape inputShape;
- ov::element::Type inputPrecision;
- std::vector<int64_t> shift;
- std::vector<int64_t> axes;
- std::string targetDevice;
- std::tie(inputShape, inputPrecision, shift, axes, targetDevice) = obj.param;
+ const auto& [inputShape, inputPrecision, shift, axes, targetDevice] = obj.param;
std::ostringstream result;
result << "IS=" << ov::test::utils::partialShape2str({inputShape.first}) << "_";
@@ -52,12 +47,8 @@ public:
protected:
void SetUp() override {
- InputShape inputShape;
- ov::element::Type inputPrecision;
- std::vector<int64_t> shift;
- std::vector<int64_t> axes;
-
- std::tie(inputShape, inputPrecision, shift, axes, targetDevice) = GetParam();
+ const auto& [inputShape, inputPrecision, shift, axes, _targetDevice] = GetParam();
+ targetDevice = _targetDevice;
init_input_shapes({inputShape});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/scaled_dot_product_attention.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/scaled_dot_product_attention.cpp
index 9913c5c2eda..3d1c9e4d441 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/scaled_dot_product_attention.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/scaled_dot_product_attention.cpp
@@ -47,16 +47,8 @@ protected:
};
std::string ScaledAttnLayerGPUTest::getTestCaseName(const testing::TestParamInfo<ScaledAttnGPUTestParams>& obj) {
- ov::element::Type inType;
- std::vector<InputShape> inputShapes;
- std::vector<std::vector<int64_t>> input_transpose;
- bool is_causal;
- bool has_attn;
- bool is_attn_const;
- bool has_scale;
- bool is_scale_const;
bool transpose_enable;
- std::tie(inType, inputShapes, is_causal, has_attn, is_attn_const, has_scale, is_scale_const, input_transpose) = obj.param;
+ const auto& [inType, inputShapes, is_causal, has_attn, is_attn_const, has_scale, is_scale_const, input_transpose] = obj.param;
transpose_enable = (input_transpose.size() != 0);
std::ostringstream result;
@@ -83,13 +75,15 @@ std::string ScaledAttnLayerGPUTest::getTestCaseName(const testing::TestParamInfo
}
void ScaledAttnLayerGPUTest::SetUp() {
- ov::element::Type inType;
- std::vector<InputShape> inputShapes;
- std::vector<std::vector<int64_t>> input_transpose;
-
targetDevice = ov::test::utils::DEVICE_GPU;
- std::tie(inType, inputShapes, is_causal, has_attn, is_attn_const, has_scale, is_scale_const, input_transpose) = this->GetParam();
+ const auto& [inType, _inputShapes, _is_causal, _has_attn, _is_attn_const, _has_scale, _is_scale_const, input_transpose] = this->GetParam();
+ is_causal = _is_causal;
+ has_attn = _has_attn;
+ is_attn_const = _is_attn_const;
+ has_scale = _has_scale;
+ is_scale_const = _is_scale_const;
+ auto inputShapes = _inputShapes;
transpose_prepare(inputShapes, input_transpose);
init_input_shapes(inputShapes);
@@ -276,15 +270,6 @@ void ScaledAttnLayerGPUTest::generate_inputs(const std::vector<ov::Shape>& targe
}
TEST_P(ScaledAttnLayerGPUTest, CompareWithRefs) {
- ov::element::Type inType;
- std::vector<InputShape> inputShapes;
- std::vector<std::vector<int64_t>> input_transpose;
- bool is_causal;
- bool has_attn;
- bool is_attn_const;
- bool has_scale;
- bool is_scale_const;
- std::tie(inType, inputShapes, is_causal, has_attn, is_attn_const, has_scale, is_scale_const, input_transpose) = this->GetParam();
run();
}
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/scatter_nd_update.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/scatter_nd_update.cpp
index 6333dc12258..e9e8d19e1f0 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/scatter_nd_update.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/scatter_nd_update.cpp
@@ -38,10 +38,7 @@ class ScatterUpdateLayerGPUTest : public testing::WithParamInterface<ScatterUpda
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<ScatterUpdateParams> obj) {
- ScatterUpdateLayerParams scatterParams;
- ov::element::Type model_type;
- ov::element::Type idx_type;
- std::tie(scatterParams, model_type, idx_type) = obj.param;
+ const auto& [scatterParams, model_type, idx_type] = obj.param;
const auto inputShapes = scatterParams.inputShapes;
const auto indicesValues = scatterParams.indicesValues;
const auto scType = scatterParams.scType;
@@ -119,10 +116,8 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ScatterUpdateLayerParams scatterParams;
- ov::element::Type model_type;
- ov::element::Type idx_type;
- std::tie(scatterParams, model_type, idx_type) = this->GetParam();
+
+ const auto& [scatterParams, model_type, idx_type] = this->GetParam();
const auto inputShapes = scatterParams.inputShapes;
const auto scType = scatterParams.scType;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/select.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/select.cpp
index da4705e662c..4f3287d8316 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/select.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/select.cpp
@@ -24,11 +24,7 @@ class SelectLayerGPUTest : public testing::WithParamInterface<SelectLayerTestPar
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<SelectLayerTestParamSet>& obj) {
- std::vector<InputShape> inshapes;
- ov::element::Type model_type;
- ov::op::AutoBroadcastSpec broadcast;
- std::string targetDevice;
- std::tie(inshapes, model_type, broadcast, targetDevice) = obj.param;
+ const auto& [inshapes, model_type, broadcast, targetDevice] = obj.param;
std::ostringstream result;
@@ -51,10 +47,8 @@ public:
protected:
void SetUp() override {
- std::vector<InputShape> inshapes;
- ov::element::Type model_type;
- ov::op::AutoBroadcastSpec broadcast;
- std::tie(inshapes, model_type, broadcast, targetDevice) = this->GetParam();
+ const auto& [inshapes, model_type, broadcast, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
init_input_shapes(inshapes);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/shapeof.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/shapeof.cpp
index 7d26bcb2b00..8984586afc4 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/shapeof.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/shapeof.cpp
@@ -22,9 +22,7 @@ class ShapeOfLayerGPUTest : public testing::WithParamInterface<ShapeOfLayerGPUTe
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<ShapeOfLayerGPUTestParamsSet> obj) {
- InputShape inputShape;
- ov::element::Type model_type;
- std::tie(inputShape, model_type) = obj.param;
+ const auto& [inputShape, model_type] = obj.param;
std::ostringstream result;
result << "ShapeOfTest_";
@@ -43,9 +41,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ov::element::Type model_type;
- InputShape inputShape;
- std::tie(inputShape, model_type) = this->GetParam();
+ const auto& [inputShape, model_type] = this->GetParam();
init_input_shapes({inputShape});
@@ -216,11 +212,7 @@ class ShapeOfDynamicInputGPUTest : public testing::WithParamInterface<ShapeOfPar
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<ShapeOfParams>& obj) {
- InputShape shapes;
- ov::element::Type model_type;
- std::string targetDevice;
-
- std::tie(shapes, model_type, targetDevice) = obj.param;
+ const auto& [shapes, model_type, targetDevice] = obj.param;
std::ostringstream result;
result << "IS=(";
result << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -239,11 +231,10 @@ public:
protected:
void SetUp() override {
- InputShape shapes;
- ov::element::Type model_type;
targetDevice = ov::test::utils::DEVICE_GPU;
- std::tie(shapes, model_type, targetDevice) = GetParam();
+ const auto& [shapes, model_type, _targetDevice] = GetParam();
+ targetDevice = _targetDevice;
init_input_shapes({shapes});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/softmax.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/softmax.cpp
index 533b1d0be85..34fc634fecc 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/softmax.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/softmax.cpp
@@ -22,10 +22,7 @@ class SoftMaxLayerGPUTest : public testing::WithParamInterface<softmaxGPUTestPar
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<softmaxGPUTestParamsSet>& obj) {
- ov::element::Type model_type;
- ov::test::InputShape inShape;
- int64_t axis;
- std::tie(model_type, inShape, axis) = obj.param;
+ const auto& [model_type, inShape, axis] = obj.param;
std::ostringstream result;
result << "netPRC=" << model_type << "_";
@@ -42,10 +39,8 @@ public:
protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ov::element::Type model_type;
- ov::test::InputShape inShape;
- int64_t axis;
- std::tie(model_type, inShape, axis) = this->GetParam();
+
+ const auto& [model_type, inShape, axis] = this->GetParam();
if (model_type == ov::element::f16) {
abs_threshold = 0.005;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/space_to_batch.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/space_to_batch.cpp
index c09672fd267..a30eca4f56a 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/space_to_batch.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/space_to_batch.cpp
@@ -31,11 +31,7 @@ class SpaceToBatchLayerGPUTest : public testing::WithParamInterface<SpaceToBatch
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<SpaceToBatchParamsLayerParamSet>& obj) {
- InputShape shapes;
- SpaceToBatchParams params;
- ov::element::Type elementType;
- ov::test::utils::InputLayerType restInputType;
- std::tie(shapes, params, elementType, restInputType) = obj.param;
+ const auto& [shapes, params, elementType, restInputType] = obj.param;
std::ostringstream results;
results << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -91,10 +87,8 @@ protected:
size_t inferRequestNum = 0;
void SetUp() override {
- InputShape shapes;
- SpaceToBatchParams ssParams;
- ov::test::utils::InputLayerType restInputType;
- std::tie(shapes, ssParams, inType, restInputType) = this->GetParam();
+ const auto& [shapes, ssParams, _inType, restInputType] = this->GetParam();
+ inType = _inType;
block = ssParams.block;
begin = ssParams.begin;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/space_to_depth.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/space_to_depth.cpp
index db63149353e..cdd11ec7bb5 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/space_to_depth.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/space_to_depth.cpp
@@ -25,11 +25,7 @@ class SpaceToDepthLayerGPUTest : public testing::WithParamInterface<SpaceToDepth
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<SpaceToDepthLayerGPUTestParams> obj) {
- InputShape shapes;
- ov::element::Type model_type;
- SpaceToDepth::SpaceToDepthMode mode;
- std::size_t block_size;
- std::tie(shapes, model_type, mode, block_size) = obj.param;
+ const auto& [shapes, model_type, mode, block_size] = obj.param;
std::ostringstream results;
results << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -55,11 +51,7 @@ public:
protected:
void SetUp() override {
- InputShape shapes;
- SpaceToDepth::SpaceToDepthMode mode;
- std::size_t block_size;
- ov::element::Type model_type;
- std::tie(shapes, model_type, mode, block_size) = this->GetParam();
+ const auto& [shapes, model_type, mode, block_size] = this->GetParam();
targetDevice = ov::test::utils::DEVICE_GPU;
init_input_shapes({shapes});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/split.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/split.cpp
index 403e622867d..2f5bf1d3ba3 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/split.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/split.cpp
@@ -28,12 +28,8 @@ class SplitLayerGPUDynamicTest : public testing::WithParamInterface<splitDynamic
public:
static std::string getTestCaseName(testing::TestParamInfo<splitDynamicGPUTestParams> obj) {
std::ostringstream result;
- size_t num_splits;
- int64_t axis;
- ov::element::Type model_type;
- InputShape input_shape;
- std::vector<size_t> out_indices;
- std::tie(num_splits, axis, model_type, input_shape, out_indices) = obj.param;
+
+ const auto& [num_splits, axis, model_type, input_shape, out_indices] = obj.param;
result << "IS=";
result << ov::test::utils::partialShape2str({input_shape.first}) << "_";
@@ -53,12 +49,9 @@ public:
protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- int64_t axis;
- size_t num_splits;
- InputShape input_shape;
- std::vector<size_t> out_indices;
- ov::element::Type model_type;
- std::tie(num_splits, axis, model_type, input_shape, out_indices) = this->GetParam();
+
+ const auto& [num_splits, axis, model_type, input_shape, _out_indices] = this->GetParam();
+ auto out_indices = _out_indices;
if (out_indices.empty()) {
for (size_t i = 0; i < num_splits; ++i) {
out_indices.push_back(i);
@@ -139,12 +132,8 @@ class VariadicSplitLayerGPUDynamicTest : public testing::WithParamInterface<varS
public:
static std::string getTestCaseName(testing::TestParamInfo<varSplitDynamicGPUTestParams> obj) {
std::ostringstream result;
- int64_t axis;
- std::vector<int32_t> split_length;
- ov::element::Type model_type;
- InputShape input_shape;
- ov::test::utils::InputLayerType inputType;
- std::tie(axis, split_length, model_type, input_shape, inputType) = obj.param;
+
+ const auto& [axis, split_length, model_type, input_shape, inputType] = obj.param;
result << "IS=";
result << ov::test::utils::partialShape2str({input_shape.first}) << "_";
@@ -186,11 +175,9 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- int64_t axis;
- InputShape input_shape;
- std::vector<int32_t> split_length;
- ov::test::utils::InputLayerType inputType;
- std::tie(axis, split_length, model_type, input_shape, inputType) = this->GetParam();
+
+ const auto& [axis, split_length, _model_type, input_shape, inputType] = this->GetParam();
+ model_type = _model_type;
split_length_vec = split_length;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/strided_slice.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/strided_slice.cpp
index 787047a4f23..3064c20eb12 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/strided_slice.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/strided_slice.cpp
@@ -37,12 +37,8 @@ class StridedSliceLayerGPUTest : public testing::WithParamInterface<StridedSlice
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<StridedSliceLayerParamSet>& obj) {
- InputShape shapes;
- StridedSliceParams params;
- ov::element::Type model_type;
- std::vector<ov::test::utils::InputLayerType> rest_input_type;
std::string targetDevice;
- std::tie(shapes, params, model_type, rest_input_type) = obj.param;
+ const auto& [shapes, params, model_type, rest_input_type] = obj.param;
std::ostringstream results;
results << "IS=" << ov::test::utils::partialShape2str({shapes.first}) << "_";
@@ -120,9 +116,9 @@ protected:
size_t inferRequestNum = 0;
void SetUp() override {
- InputShape shapes;
- StridedSliceParams ssParams;
- std::tie(shapes, ssParams, inType, rest_input_type) = this->GetParam();
+ const auto& [shapes, ssParams, _inType, _rest_input_type] = this->GetParam();
+ inType = _inType;
+ rest_input_type = _rest_input_type;
begin = ssParams.begin;
end = ssParams.end;
@@ -241,9 +237,9 @@ protected:
size_t inferRequestNum = 0;
void SetUp() override {
- InputShape shapes;
- StridedSliceParams ssParams;
- std::tie(shapes, ssParams, inType, rest_input_type) = this->GetParam();
+ const auto& [shapes, ssParams, _inType, _rest_input_type] = this->GetParam();
+ inType = _inType;
+ rest_input_type = _rest_input_type;
begin = ssParams.begin;
end = ssParams.end;
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/tile.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/tile.cpp
index 107d4a707ee..aece800fd9e 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/tile.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/tile.cpp
@@ -25,12 +25,7 @@ public:
static std::string getTestCaseName(testing::TestParamInfo<TileLayerTestParamsSet> obj) {
TileLayerTestParamsSet basicParamsSet = obj.param;
- std::vector<ov::test::InputShape> input_shapes;
- std::vector<int64_t> repeats;
- ov::element::Type_t model_type;
- bool is_repeats_const;
- std::string deviceName;
- std::tie(input_shapes, repeats, model_type, is_repeats_const, deviceName) = basicParamsSet;
+ const auto& [input_shapes, repeats, model_type, is_repeats_const, deviceName] = basicParamsSet;
std::ostringstream result;
result << "IS=(";
@@ -55,10 +50,9 @@ protected:
void SetUp() override {
TileLayerTestParamsSet basicParamsSet = this->GetParam();
- std::vector<ov::test::InputShape> input_shapes;
- ov::element::Type_t model_type;
- bool is_repeats_const;
- std::tie(input_shapes, repeatsData, model_type, is_repeats_const, targetDevice) = basicParamsSet;
+ const auto& [input_shapes, _repeatsData, model_type, is_repeats_const, _targetDevice] = basicParamsSet;
+ repeatsData = _repeatsData;
+ targetDevice = _targetDevice;
if (input_shapes.front().first.rank() != 0) {
inputDynamicShapes.push_back(input_shapes.front().first);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/top_k.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/top_k.cpp
index b8c0cfdcca5..6b2a7718e6d 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/top_k.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/top_k.cpp
@@ -35,14 +35,7 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<TopKLayerTestParamsSet>& obj) {
TopKLayerTestParamsSet basicParamsSet = obj.param;
- int64_t keepK, axis;
- ov::op::v1::TopK::Mode mode;
- ov::op::v1::TopK::SortType sort;
- ov::element::Type model_type, inPrc, outPrc;
- InputShape input_shape;
- std::string targetDevice;
- ov::test::utils::InputLayerType input_type;
- std::tie(keepK, axis, mode, sort, model_type, inPrc, outPrc, input_shape, targetDevice, input_type) = basicParamsSet;
+ const auto& [keepK, axis, mode, sort, model_type, inPrc, outPrc, input_shape, targetDevice, input_type] = basicParamsSet;
std::ostringstream result;
result << "k=" << keepK << "_";
@@ -67,12 +60,11 @@ protected:
void SetUp() override {
TopKLayerTestParamsSet basicParamsSet = this->GetParam();
- int64_t keepK;
- ov::op::v1::TopK::Mode mode;
- ov::op::v1::TopK::SortType sort;
- ov::element::Type inPrc, outPrc;
- InputShape input_shape;
- std::tie(keepK, axis, mode, sort, model_type, inPrc, outPrc, input_shape, targetDevice, input_type) = basicParamsSet;
+ const auto& [keepK, _axis, mode, sort, _model_type, inPrc, outPrc, input_shape, _targetDevice, _input_type] = basicParamsSet;
+ axis = _axis;
+ model_type = _model_type;
+ targetDevice = _targetDevice;
+ input_type = _input_type;
if (input_type == ov::test::utils::InputLayerType::CONSTANT) {
init_input_shapes({input_shape});
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/unique.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/unique.cpp
index db5add50ded..9e6c8906b59 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/unique.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/dynamic/unique.cpp
@@ -23,11 +23,7 @@ class UniqueLayerDynamicGPUTest : public testing::WithParamInterface<UniqueDynam
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<UniqueDynamicGPUTestParams>& obj) {
- std::vector<InputShape> input_shapes;
- std::tuple<bool, int> flat_or_axis;
- bool sorted;
- ov::element::Type model_type;
- std::tie(input_shapes, flat_or_axis, sorted, model_type) = obj.param;
+ const auto& [input_shapes, flat_or_axis, sorted, model_type] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -59,16 +55,10 @@ public:
protected:
void SetUp() override {
- std::vector<InputShape> input_shapes;
- std::tuple<bool, int> flat_or_axis;
- bool sorted, flattened;
- int axis;
- ov::element::Type model_type;
-
- std::tie(input_shapes, flat_or_axis, sorted, model_type) = this->GetParam();
+ const auto& [input_shapes, flat_or_axis, sorted, model_type] = this->GetParam();
targetDevice = ov::test::utils::DEVICE_GPU;
init_input_shapes(input_shapes);
- flattened = std::get<0>(flat_or_axis);
+ auto [flattened, axis] = flat_or_axis;
ov::ParameterVector params;
for (auto&& shape : inputDynamicShapes) {
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/fake_convert.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/fake_convert.cpp
index d1236f5c524..0a6bcc17dfb 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/fake_convert.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/fake_convert.cpp
@@ -35,14 +35,7 @@ class FakeConvertTest : public testing::WithParamInterface<FakeConvertTestParams
virtual public ov::test::SubgraphBaseStaticTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<FakeConvertTestParams> obj) {
- ov::Shape input_shape;
- ov::Shape scale_shape;
- ov::Shape shift_shape;
- ov::element::Type prec;
- ov::element::Type destination_type;
- std::string target_device;
-
- std::tie(input_shape, scale_shape, shift_shape, prec, destination_type, target_device) = obj.param;
+ const auto& [input_shape, scale_shape, shift_shape, prec, destination_type, target_device] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -60,8 +53,12 @@ protected:
ov::element::Type destination_type;
void SetUp() override {
- ov::element::Type prec;
- std::tie(input_shape, scale_shape, shift_shape, prec, destination_type, targetDevice) = GetParam();
+ const auto& [_input_shape, _scale_shape, _shift_shape, prec, _destination_type, _targetDevice] = GetParam();
+ input_shape = _input_shape;
+ scale_shape = _scale_shape;
+ shift_shape = _shift_shape;
+ destination_type = _destination_type;
+ targetDevice = _targetDevice;
const float MAX_FP8 = (destination_type == ov::element::f8e4m3) ? fp8::MAX_F8E4M3 : fp8::MAX_F8E5M2;
if (shift_shape.empty()) {
auto data = make_shared<op::v0::Parameter>(prec, input_shape);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/gather_elements_padding_input.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/gather_elements_padding_input.cpp
index 7abf1a0dc87..c78a47ddb43 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/gather_elements_padding_input.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/gather_elements_padding_input.cpp
@@ -28,14 +28,8 @@ class GatherElementsPaddingInputTest : public testing::WithParamInterface<Gather
virtual public ov::test::SubgraphBaseStaticTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<GatherElementsPaddingInputParams> obj) {
- std::tuple<std::vector<ov::Shape>, std::vector<int64_t>, std::vector<size_t>> input_params;
- std::vector<ov::Shape> input_shape;
- std::vector<int64_t> axis;
- std::vector<size_t> numSplits;
- ov::element::Type input_precision;
-
- std::tie(input_params, input_precision) = obj.param;
- std::tie(input_shape, axis, numSplits) = input_params;
+ const auto& [input_params, input_precision] = obj.param;
+ const auto& [input_shape, axis, numSplits] = input_params;
std::ostringstream result;
result << "IS=(";
@@ -46,12 +40,9 @@ public:
protected:
int64_t axis_gatherElements;
- std::shared_ptr<ov::Model> init_subgraph(std::tuple<std::vector<ov::Shape>, std::vector<int64_t>, std::vector<size_t>>& input_params,
+ std::shared_ptr<ov::Model> init_subgraph(const std::tuple<std::vector<ov::Shape>, std::vector<int64_t>, std::vector<size_t>>& input_params,
const ov::element::Type input_precision) {
- std::vector<ov::Shape> input_shape;
- std::vector<int64_t> axis;
- std::vector<size_t> numSplits;
- std::tie(input_shape, axis, numSplits) = input_params;
+ const auto& [input_shape, axis, numSplits] = input_params;
int64_t axis_variadicSplit = axis[0];
axis_gatherElements = axis[1];
@@ -79,10 +70,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::tuple<std::vector<ov::Shape>, std::vector<int64_t>, std::vector<size_t>> input_params;
- ov::element::Type input_precision;
-
- std::tie(input_params, input_precision) = GetParam();
+ const auto& [input_params, input_precision] = GetParam();
inType = outType = input_precision;
function = init_subgraph(input_params, input_precision);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/gather_indices_input.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/gather_indices_input.cpp
index 7d3f66e6081..e4afec82cbf 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/gather_indices_input.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/gather_indices_input.cpp
@@ -24,12 +24,7 @@ class GatherIndicesInputTest : public testing::WithParamInterface<GatherIndicesI
virtual public ov::test::SubgraphBaseStaticTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<GatherIndicesInputParams> obj) {
- ov::Shape input_shape;
- ov::Shape indices_shape;
- std::tuple<int, int> axis_batch_idx;
- ov::element::Type input_precision;
-
- std::tie(input_shape, indices_shape, axis_batch_idx, input_precision) = obj.param;
+ const auto& [input_shape, indices_shape, axis_batch_idx, input_precision] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -46,9 +41,11 @@ protected:
std::tuple<int, int> axis_batch_idx;
void SetUp() override {
- ov::element::Type input_precision;
targetDevice = ov::test::utils::DEVICE_GPU;
- std::tie(input_shape, indices_shape, axis_batch_idx, input_precision) = GetParam();
+ const auto& [_input_shape, _indices_shape, _axis_batch_idx, input_precision] = GetParam();
+ input_shape = _input_shape;
+ indices_shape = _indices_shape;
+ axis_batch_idx = _axis_batch_idx;
int axis = std::get<0>(axis_batch_idx);
int batch_idx = std::get<1>(axis_batch_idx);
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/reduce.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/reduce.cpp
index e94cee4dd0e..e60c6f44cc1 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/reduce.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/reduce.cpp
@@ -26,12 +26,7 @@ class ReduceSumSqueezeTest : public testing::WithParamInterface<ReduceInputParam
virtual public ov::test::SubgraphBaseStaticTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<ReduceInputParams> obj) {
- ov::Shape input_shape;
- ov::element::Type input_precisions;
- std::vector<int64_t> reduce_axes;
- bool keep_dims;
-
- std::tie(input_shape, input_precisions, reduce_axes, keep_dims) = obj.param;
+ const auto& [input_shape, input_precisions, reduce_axes, keep_dims] = obj.param;
std::ostringstream result;
result << "IS=ReduceSum_";
@@ -50,8 +45,11 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
core->set_property(targetDevice, ov::enable_profiling(true));
- ov::element::Type input_precision;
- std::tie(input_shape, input_precision, reduce_axes, keep_dims) = GetParam();
+
+ const auto& [_input_shape, input_precision, _reduce_axes, _keep_dims] = GetParam();
+ input_shape = _input_shape;
+ reduce_axes = _reduce_axes;
+ keep_dims = _keep_dims;
ov::Shape add_val_shape = {input_shape.begin(), input_shape.end() - 1};
ov::test::utils::InputGenerateData in_data;
@@ -73,8 +71,11 @@ protected:
void run() override {
ov::test::SubgraphBaseStaticTest::run();
- ov::Shape input_shape;
- std::tie(input_shape, std::ignore, std::ignore, std::ignore) = GetParam();
+
+ const auto& [input_shape, _ignore, _ignore1, _ignore2] = GetParam();
+ std::ignore = _ignore;
+ std::ignore = _ignore1;
+ std::ignore = _ignore2;
auto profile_info = inferRequest.get_profiling_info();
auto num_executed = std::count_if(profile_info.begin(), profile_info.end(),
[](const ov::ProfilingInfo& p) { return p.status == ov::ProfilingInfo::Status::EXECUTED; });
diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/tensor_iterator.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/tensor_iterator.cpp
index 79e09823723..25ff0483e27 100644
--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/tensor_iterator.cpp
+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/tensor_iterator.cpp
@@ -33,17 +33,9 @@ class TensorIteratorWithConfigTest : public testing::WithParamInterface<TensorIt
virtual public ov::test::SubgraphBaseStaticTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<TensorIteratorWithConfigParams> &obj) {
- size_t seq_lengths;
- size_t batch;
- size_t hidden_size;
size_t input_size = 10;
- size_t sequence_axis;
- ov::test::utils::TensorIteratorBody ti_body;
- float clip;
- ov::op::RecurrentSequenceDirection direction;
- ov::element::Type model_type;
- std::string target_device;
- std::tie(seq_lengths, batch, hidden_size, sequence_axis, clip, ti_body, direction, model_type, target_device) = obj.param;
+
+ const auto& [seq_lengths, batch, hidden_size, sequence_axis, clip, ti_body, direction, model_type, target_device] = obj.param;
std::vector<std::vector<size_t>> inputShapes = {};
switch (ti_body) {
@@ -82,16 +74,10 @@ public:
protected:
void SetUp() override {
- size_t seq_lengths;
- size_t batch;
- size_t hidden_size;
size_t input_size = 10;
- size_t sequence_axis;
- ov::test::utils::TensorIteratorBody ti_body;
- float clip;
- ov::op::RecurrentSequenceDirection direction;
- ov::element::Type model_type;
- std::tie(seq_lengths, batch, hidden_size, sequence_axis, clip, ti_body, direction, model_type, targetDevice) = this->GetParam();
+
+ const auto& [seq_lengths, batch, hidden_size, sequence_axis, clip, ti_body, direction, model_type, _targetDevice] = this->GetParam();
+ targetDevice = _targetDevice;
std::vector<std::vector<size_t>> inputShapes;
auto tensor_iterator = std::make_shared<ov::op::v0::TensorIterator>();
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/condition.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/condition.cpp
index 5e1590f9c9d..d8583651950 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/condition.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/condition.cpp
@@ -558,12 +558,7 @@ class StaticConditionLayerGPUTest : public testing::WithParamInterface<Condition
virtual public ov::test::SubgraphBaseStaticTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<ConditionParams>& obj) {
- ov::Shape data_shape;
- ov::element::Type model_type;
- TestModelGenerator::PredicateTypes pred;
- std::string targetDevice;
-
- std::tie(data_shape, model_type, pred, targetDevice) = obj.param;
+ const auto& [data_shape, model_type, pred, targetDevice] = obj.param;
std::ostringstream result;
result << "IS=" << ov::test::utils::vec2str(data_shape) << "_";
result << "netPRC=" << model_type << "_";
@@ -577,8 +572,11 @@ public:
protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- TestModelGenerator::PredicateTypes pred;
- std::tie(data_shape, model_type, pred, targetDevice) = GetParam();
+
+ const auto& [_data_shape, _model_type, pred, _targetDevice] = GetParam();
+ data_shape = _data_shape;
+ model_type = _model_type;
+ targetDevice = _targetDevice;
const auto ngShape = ov::PartialShape{data_shape};
TestModelGenerator model_generator(InnerBodyGenerator::InnerBodyType::Type02,
@@ -642,12 +640,7 @@ class StaticConditionSingleLayerGPUTest : public testing::WithParamInterface<Con
virtual public ov::test::SubgraphBaseStaticTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<ConditionParams>& obj) {
- ov::Shape data_shape;
- ov::element::Type model_type;
- TestModelGenerator::PredicateTypes pred;
- std::string targetDevice;
-
- std::tie(data_shape, model_type, pred, targetDevice) = obj.param;
+ const auto& [data_shape, model_type, pred, targetDevice] = obj.param;
std::ostringstream result;
result << "IS=" << ov::test::utils::vec2str(data_shape) << "_";
result << "netPRC=" << model_type << "_";
@@ -661,8 +654,11 @@ public:
protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- TestModelGenerator::PredicateTypes pred;
- std::tie(data_shape, model_type, pred, targetDevice) = GetParam();
+
+ const auto& [_data_shape, _model_type, pred, _targetDevice] = GetParam();
+ data_shape = _data_shape;
+ model_type = _model_type;
+ targetDevice = _targetDevice;
const auto ngShape = ov::PartialShape{data_shape};
TestModelGenerator model_generator(InnerBodyGenerator::InnerBodyType::Type07,
@@ -735,13 +731,7 @@ class DynamicConditionLayerGPUTest : public testing::WithParamInterface<Conditio
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<ConditionGPUParams>& obj) {
- InputShape inputShapes;
- InnerBodyTypeParams bodyParams;
- ov::element::Type model_type;
- TestModelGenerator::PredicateTypes condType;
- std::string targetDevice;
-
- std::tie(inputShapes, bodyParams, model_type, condType, targetDevice) = obj.param;
+ const auto& [inputShapes, bodyParams, model_type, condType, targetDevice] = obj.param;
std::ostringstream result;
result << "IS=(";
result << ov::test::utils::partialShape2str({inputShapes.first}) << "_";
@@ -762,11 +752,8 @@ public:
protected:
void SetUp() override {
- InputShape inputShapes;
- InnerBodyTypeParams bodyParams;
- ov::element::Type model_type;
- TestModelGenerator::PredicateTypes condType;
- std::tie(inputShapes, bodyParams, model_type, condType, targetDevice) = GetParam();
+ const auto& [inputShapes, bodyParams, model_type, condType, _targetDevice] = GetParam();
+ targetDevice = _targetDevice;
auto num_second = inputShapes.second.size();
std::vector<ov::Shape> condSecondVec;
for (size_t i = 0; i < num_second; i++) {
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/activations_scaling.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/activations_scaling.cpp
index b427241a2ad..f502f4237b6 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/activations_scaling.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/activations_scaling.cpp
@@ -42,10 +42,7 @@ class ActivationsScaling : public testing::WithParamInterface<ActivationsScaling
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<ActivationsScalingParams> obj) {
- ShapeParams shape_params;
- ov::element::Type input_precision;
-
- std::tie(shape_params, input_precision) = obj.param;
+ const auto& [shape_params, input_precision] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -161,10 +158,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ShapeParams shape_params;
- ov::element::Type input_precision;
-
- std::tie(shape_params, input_precision) = GetParam();
+ const auto& [shape_params, input_precision] = GetParam();
init_input_shapes(shape_params.input_shape);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/broadcast_eltwise.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/broadcast_eltwise.cpp
index 65373ff1d76..ff843994f7e 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/broadcast_eltwise.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/broadcast_eltwise.cpp
@@ -24,10 +24,7 @@ class BroadcastEltwise : virtual public ov::test::SubgraphBaseTest,
public testing::WithParamInterface<BroadcastEltwiseParams> {
public:
static std::string getTestCaseName(const testing::TestParamInfo<BroadcastEltwiseParams>& obj) {
- ov::element::Type model_type;
- InputShape input_shape;
- ov::Shape target_shape;
- std::tie(model_type, input_shape, target_shape) = obj.param;
+ const auto& [model_type, input_shape, target_shape] = obj.param;
std::ostringstream result;
result << "precision=" << model_type << "IS=(" << ov::test::utils::partialShape2str({input_shape.first}) << ")_TS=(";
@@ -40,9 +37,8 @@ public:
protected:
void SetUp() override {
- ov::element::Type model_type;
- InputShape input_shape;
- std::tie(model_type, input_shape, target_shape) = GetParam();
+ const auto& [model_type, input_shape, _target_shape] = GetParam();
+ target_shape = _target_shape;
targetDevice = ov::test::utils::DEVICE_GPU;
std::vector<InputShape> input_shapes{input_shape, {{}, {{target_shape.size()}}}};
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/convert_bf16_fp32_fp16.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/convert_bf16_fp32_fp16.cpp
index 77c10d1ee79..26099ead18f 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/convert_bf16_fp32_fp16.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/convert_bf16_fp32_fp16.cpp
@@ -27,9 +27,7 @@ public:
std::string targetDevice = ov::test::utils::DEVICE_GPU;
static std::string get_test_case_name(testing::TestParamInfo<BF16WeightsDecompressionParams> obj) {
- float given;
- float expected;
- std::tie(given, expected) = obj.param;
+ const auto& [given, expected] = obj.param;
std::ostringstream result;
result << "given=" << given << "expected=" << expected;
return result.str();
@@ -104,9 +102,7 @@ TEST_F(BF16WeightsDecompression, Inference_input_3_f16) {
}
TEST_P(BF16WeightsDecompression, Inference_without_convert) {
- float given;
- float expected;
- std::tie(given, expected) = GetParam();
+ const auto& [given, expected] = GetParam();
std::shared_ptr<ov::Model> function_without_convert = init_subgraph_without_convert(given);
ov::CompiledModel model_without_convert = core->compile_model(function_without_convert, targetDevice, {ov::hint::inference_precision(ov::element::f32)});
auto request = model_without_convert.create_infer_request();
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_fc_horizontal_fusion.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_fc_horizontal_fusion.cpp
index 7c7bd70b530..9df66d50339 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_fc_horizontal_fusion.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_fc_horizontal_fusion.cpp
@@ -54,25 +54,15 @@ class FullyConnectedHorizontalFusion : public testing::WithParamInterface<FullyC
virtual public ov::test::SubgraphBaseTest {
public:
static std::string get_test_case_name(testing::TestParamInfo<FullyConnectedHorizontalFusionParams> obj) {
- ShapeParams shape_params;
- ov::element::Type weights_precision;
- ov::element::Type activations_precision;
- bool transpose;
- bool decompression_sub;
- bool reshape_on_decompression;
- bool per_tensor_zp;
- bool has_bias;
- uint64_t dyn_quan_group_size;
-
- std::tie(shape_params,
- weights_precision,
- activations_precision,
- transpose,
- decompression_sub,
- reshape_on_decompression,
- per_tensor_zp,
- has_bias,
- dyn_quan_group_size) = obj.param;
+ const auto& [shape_params,
+ weights_precision,
+ activations_precision,
+ transpose,
+ decompression_sub,
+ reshape_on_decompression,
+ per_tensor_zp,
+ has_bias,
+ dyn_quan_group_size] = obj.param;
std::ostringstream result;
result << "data_shape=";
@@ -343,25 +333,15 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ShapeParams shape_params;
- ov::element::Type weights_precision;
- ov::element::Type activations_precision;
- bool transpose_weights;
- bool decompression_sub;
- bool reshape_on_decompression;
- bool per_tensor_zp;
- bool has_bias;
- uint64_t dyn_quan_group_size;
-
- std::tie(shape_params,
- weights_precision,
- activations_precision,
- transpose_weights,
- decompression_sub,
- reshape_on_decompression,
- per_tensor_zp,
- has_bias,
- dyn_quan_group_size) = GetParam();
+ const auto& [shape_params,
+ weights_precision,
+ activations_precision,
+ transpose_weights,
+ decompression_sub,
+ reshape_on_decompression,
+ per_tensor_zp,
+ has_bias,
+ dyn_quan_group_size] = GetParam();
std::vector<InputShape> input_shapes = {shape_params.data_shape};
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_model_static_split_layer.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_model_static_split_layer.cpp
index daebe51a72d..0656c0464fe 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_model_static_split_layer.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_model_static_split_layer.cpp
@@ -29,11 +29,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<DynamicModelStaticSplitLayerGPUTestParamsSet>& obj) {
DynamicModelStaticSplitLayerGPUTestParamsSet basicParamsSet = obj.param;
std::ostringstream result;
- std::vector<InputShape> inputShapes;
- ov::element::Type model_type;
- std::string targetDevice;
- std::tie(inputShapes, model_type, targetDevice) = basicParamsSet;
+ const auto& [inputShapes, model_type, targetDevice] = basicParamsSet;
result << "IS=";
for (const auto& shape : inputShapes) {
result << ov::test::utils::partialShape2str({shape.first}) << "_";
@@ -64,9 +61,9 @@ protected:
void SetUp() override {
DynamicModelStaticSplitLayerGPUTestParamsSet basicParamsSet = this->GetParam();
- std::vector<InputShape> inputShapes;
- ov::element::Type model_type;
- std::tie(inputShapes, model_type, targetDevice) = basicParamsSet;
+
+ const auto& [inputShapes, model_type, _targetDevice] = basicParamsSet;
+ targetDevice = _targetDevice;
init_input_shapes(inputShapes);
const auto inShapSplit = inputDynamicShapes[0];
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_conv_reshape_fully_connected.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_conv_reshape_fully_connected.cpp
index 604215a756b..c30dd068cd8 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_conv_reshape_fully_connected.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_conv_reshape_fully_connected.cpp
@@ -35,12 +35,8 @@ class ConvReshapeFullyConnectedDynamicGPUTestDynamic : public testing::WithParam
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<convReshapeFullyConnectedDynamicGPUTestDynamicParamsSet>& obj) {
- InputShape inputShape;
- ov::element::Type model_type;
- std::string targetDevice;
-
convReshapeFullyConnectedDynamicGPUTestDynamicParamsSet basicParamsSet = obj.param;
- std::tie(inputShape, model_type, targetDevice) = basicParamsSet;
+ const auto& [inputShape, model_type, targetDevice] = basicParamsSet;
std::ostringstream result;
result << "IS=";
@@ -55,10 +51,9 @@ public:
protected:
void SetUp() override {
- InputShape inputShape;
- ov::element::Type model_type;
convReshapeFullyConnectedDynamicGPUTestDynamicParamsSet basicParamsSet = this->GetParam();
- std::tie(inputShape, model_type, targetDevice) = basicParamsSet;
+ const auto& [inputShape, model_type, _targetDevice] = basicParamsSet;
+ targetDevice = _targetDevice;
init_input_shapes({inputShape});
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_gen_impl_key.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_gen_impl_key.cpp
index 7be8fa9c844..6799fac55c9 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_gen_impl_key.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_gen_impl_key.cpp
@@ -36,12 +36,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<genImplKeyDynamicGPUTestParamsSet>& obj) {
genImplKeyDynamicGPUTestParamsSet basicParamsSet = obj.param;
std::ostringstream result;
- std::vector<InputShape> inputShapes;
- ov::element::Type netType;
- std::string targetDevice;
- std::map<std::string, std::string> additionalConfig;
- std::tie(inputShapes, netType, targetDevice, additionalConfig) = basicParamsSet;
+ const auto& [inputShapes, netType, targetDevice, additionalConfig] = basicParamsSet;
result << "IS=";
for (const auto& shape : inputShapes) {
result << ov::test::utils::partialShape2str({shape.first}) << "_";
@@ -72,10 +68,9 @@ protected:
void SetUp() override {
genImplKeyDynamicGPUTestParamsSet basicParamsSet = this->GetParam();
- std::vector<InputShape> inputShapes;
- ov::element::Type netType;
- std::map<std::string, std::string> additionalConfig;
- std::tie(inputShapes, netType, targetDevice, additionalConfig) = basicParamsSet;
+
+ const auto& [inputShapes, netType, _targetDevice, additionalConfig] = basicParamsSet;
+ targetDevice = _targetDevice;
init_input_shapes(inputShapes);
const auto inShapeShapeOf = inputDynamicShapes[0];
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_reduce_deconvolution_concat.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_reduce_deconvolution_concat.cpp
index 21d65501c3e..5c43f9849be 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_reduce_deconvolution_concat.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_reduce_deconvolution_concat.cpp
@@ -32,11 +32,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<reduceDeconvConcatDynamicGPUTestParamsSet>& obj) {
reduceDeconvConcatDynamicGPUTestParamsSet basicParamsSet = obj.param;
std::ostringstream result;
- std::vector<InputShape> inputShapes;
- ov::element::Type model_type;
- std::string targetDevice;
- std::tie(inputShapes, model_type, targetDevice) = basicParamsSet;
+ const auto& [inputShapes, model_type, targetDevice] = basicParamsSet;
result << "IS=";
for (const auto& shape : inputShapes) {
result << ov::test::utils::partialShape2str({shape.first}) << "_";
@@ -67,9 +64,9 @@ protected:
void SetUp() override {
reduceDeconvConcatDynamicGPUTestParamsSet basicParamsSet = this->GetParam();
- std::vector<InputShape> inputShapes;
- ov::element::Type model_type;
- std::tie(inputShapes, model_type, targetDevice) = basicParamsSet;
+
+ const auto& [inputShapes, model_type, _targetDevice] = basicParamsSet;
+ targetDevice = _targetDevice;
init_input_shapes(inputShapes);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_shape_of_activation.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_shape_of_activation.cpp
index b649e7f743b..d7baf417881 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_shape_of_activation.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_shape_of_activation.cpp
@@ -36,14 +36,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<shapeofActivationDynamicGPUTestParamsSet>& obj) {
shapeofActivationDynamicGPUTestParamsSet basicParamsSet = obj.param;
std::ostringstream result;
- InputShape inputShape;
- ov::element::Type netType;
- std::string targetDevice;
- ov::test::utils::ActivationTypes activationType;
- std::vector<size_t> inShape;
- std::vector<float> constantValue;
-
- std::tie(inputShape, netType, targetDevice, activationType, inShape, constantValue) = basicParamsSet;
+
+ const auto& [inputShape, netType, targetDevice, activationType, inShape, constantValue] = basicParamsSet;
result << "IS=";
result << ov::test::utils::partialShape2str({inputShape.first}) << "_";
for (const auto& actual_shape : inputShape.second) {
@@ -75,12 +69,9 @@ protected:
void SetUp() override {
shapeofActivationDynamicGPUTestParamsSet basicParamsSet = this->GetParam();
- InputShape inputShape;
- ov::element::Type netType;
- ov::test::utils::ActivationTypes activationType;
- std::vector<size_t> inShape;
- std::vector<float> constantValue;
- std::tie(inputShape, netType, targetDevice, activationType, inShape, constantValue) = basicParamsSet;
+
+ const auto& [inputShape, netType, _targetDevice, activationType, inShape, constantValue] = basicParamsSet;
+ targetDevice = _targetDevice;
init_input_shapes({inputShape});
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_shape_of_reduce_reshape.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_shape_of_reduce_reshape.cpp
index 2f0f908b8ed..0d9caf7bc1a 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_shape_of_reduce_reshape.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_shape_of_reduce_reshape.cpp
@@ -35,11 +35,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<shapeOfReshapeReduceDynamicGPUTestParamsSet>& obj) {
shapeOfReshapeReduceDynamicGPUTestParamsSet basicParamsSet = obj.param;
std::ostringstream result;
- std::vector<InputShape> inputShapes;
- ov::element::Type model_type;
- std::string targetDevice;
- std::tie(inputShapes, model_type, targetDevice) = basicParamsSet;
+ const auto& [inputShapes, model_type, targetDevice] = basicParamsSet;
result << "IS=";
for (const auto& shape : inputShapes) {
result << ov::test::utils::partialShape2str({shape.first}) << "_";
@@ -70,9 +67,9 @@ protected:
void SetUp() override {
shapeOfReshapeReduceDynamicGPUTestParamsSet basicParamsSet = this->GetParam();
- std::vector<InputShape> inputShapes;
- ov::element::Type model_type;
- std::tie(inputShapes, model_type, targetDevice) = basicParamsSet;
+
+ const auto& [inputShapes, model_type, _targetDevice] = basicParamsSet;
+ targetDevice = _targetDevice;
init_input_shapes(inputShapes);
const auto inShapeShapeOf = inputDynamicShapes[0];
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_with_empty_tensor.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_with_empty_tensor.cpp
index d8ef97275e2..75fda48b2a6 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_with_empty_tensor.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_with_empty_tensor.cpp
@@ -33,11 +33,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<emptyTensorTestParamsSet>& obj) {
emptyTensorTestParamsSet basicParamsSet = obj.param;
std::ostringstream result;
- std::vector<InputShape> inputShapes;
- ov::element::Type netType;
- std::string targetDevice;
- std::tie(inputShapes, netType, targetDevice) = basicParamsSet;
+ const auto& [inputShapes, netType, targetDevice] = basicParamsSet;
result << "IS=";
for (const auto& shape : inputShapes) {
result << ov::test::utils::partialShape2str({shape.first}) << "_";
@@ -77,9 +74,9 @@ protected:
void SetUp() override {
emptyTensorTestParamsSet basicParamsSet = this->GetParam();
- std::vector<InputShape> inputShapes;
- ov::element::Type netType;
- std::tie(inputShapes, netType, targetDevice) = basicParamsSet;
+
+ const auto& [inputShapes, netType, _targetDevice] = basicParamsSet;
+ targetDevice = _targetDevice;
init_input_shapes(inputShapes);
const auto AllZeroData = inputDynamicShapes[0];
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_with_static_conv.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_with_static_conv.cpp
index d47386586d8..ca6eac53f94 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_with_static_conv.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_smoke_test_with_static_conv.cpp
@@ -30,12 +30,8 @@ class ConvStaticConcatDynamicGPUTestDynamic : public testing::WithParamInterface
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<convStaticConcatDynamicGPUTestDynamicParamsSet>& obj) {
- std::vector<InputShape> inputShape;
- ov::element::Type model_type;
- std::string targetDevice;
-
convStaticConcatDynamicGPUTestDynamicParamsSet basicParamsSet = obj.param;
- std::tie(inputShape, model_type, targetDevice) = basicParamsSet;
+ const auto& [inputShape, model_type, targetDevice] = basicParamsSet;
std::ostringstream result;
result << "IS_Dynamic=";
@@ -55,10 +51,9 @@ public:
protected:
void SetUp() override {
- std::vector<InputShape> inputShape;
- ov::element::Type model_type;
convStaticConcatDynamicGPUTestDynamicParamsSet basicParamsSet = this->GetParam();
- std::tie(inputShape, model_type, targetDevice) = basicParamsSet;
+ const auto& [inputShape, model_type, _targetDevice] = basicParamsSet;
+ targetDevice = _targetDevice;
init_input_shapes(inputShape);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_unfusion.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_unfusion.cpp
index 9da936d53e1..46785b78255 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_unfusion.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/dynamic_unfusion.cpp
@@ -23,12 +23,7 @@ class DynamicUnfusions : public testing::WithParamInterface<DynamicUnfusionsPara
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<DynamicUnfusionsParams> obj) {
- std::vector<InputShape> input_shapes;
- bool transpose_a;
- bool transpose_b;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, transpose_a, transpose_b, input_precision) = obj.param;
+ const auto& [input_shapes, transpose_a, transpose_b, input_precision] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -73,12 +68,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::vector<InputShape> input_shapes;
- bool transpose_a;
- bool transpose_b;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, transpose_a, transpose_b, input_precision) = GetParam();
+ const auto& [input_shapes, transpose_a, transpose_b, input_precision] = GetParam();
init_input_shapes(input_shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/eltwise_fusion.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/eltwise_fusion.cpp
index 9508ab3040c..fd625ed3e57 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/eltwise_fusion.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/eltwise_fusion.cpp
@@ -22,10 +22,7 @@ class StaticEltwiseDynamicFusions : public testing::WithParamInterface<StaticElt
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<StaticEltwiseDynamicFusionsParams> obj) {
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, input_precision) = obj.param;
+ const auto& [input_shapes, input_precision] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -68,10 +65,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, input_precision) = GetParam();
+ const auto& [input_shapes, input_precision] = GetParam();
init_input_shapes(input_shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/eltwise_merge.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/eltwise_merge.cpp
index 89565d86518..a861ed285cb 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/eltwise_merge.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/eltwise_merge.cpp
@@ -32,10 +32,7 @@ using EltwiseMergeParams = std::tuple<std::vector<InputShape>, // input shapes
class EltwiseMerge : public testing::WithParamInterface<EltwiseMergeParams>, virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<EltwiseMergeParams> obj) {
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, input_precision) = obj.param;
+ const auto& [input_shapes, input_precision] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -86,10 +83,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, input_precision) = GetParam();
+ const auto& [input_shapes, input_precision] = GetParam();
init_input_shapes(input_shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/hybrid.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/hybrid.cpp
index 1816dfefb7a..b6be0123741 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/hybrid.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/hybrid.cpp
@@ -61,25 +61,15 @@ class MatmulWeightsDecompressionQuantizeConvolution : public testing::WithParamI
virtual public ov::test::SubgraphBaseTest {
public:
static std::string get_test_case_name(testing::TestParamInfo<MatmulWeightsDecompressionQuantizeConvolutionParams> obj) {
- ShapeParams shape_params;
- ov::element::Type weights_precision;
- ov::element::Type activations_precision;
- bool transpose;
- bool decompression_sub;
- bool reshape_on_decompression;
- bool extra_multiply;
- bool per_tensor_zp;
- uint64_t dyn_quan_group_size;
-
- std::tie(shape_params,
- weights_precision,
- activations_precision,
- transpose,
- decompression_sub,
- reshape_on_decompression,
- extra_multiply,
- per_tensor_zp,
- dyn_quan_group_size) = obj.param;
+ const auto& [shape_params,
+ weights_precision,
+ activations_precision,
+ transpose,
+ decompression_sub,
+ reshape_on_decompression,
+ extra_multiply,
+ per_tensor_zp,
+ dyn_quan_group_size] = obj.param;
std::ostringstream result;
result << "data_shape=";
@@ -291,25 +281,15 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ShapeParams shape_params;
- ov::element::Type weights_precision;
- ov::element::Type activations_precision;
- bool transpose_weights;
- bool decompression_sub;
- bool reshape_on_decompression;
- bool extra_multiply;
- bool per_tensor_zp;
- uint64_t dyn_quan_group_size;
-
- std::tie(shape_params,
- weights_precision,
- activations_precision,
- transpose_weights,
- decompression_sub,
- reshape_on_decompression,
- extra_multiply,
- per_tensor_zp,
- dyn_quan_group_size) = GetParam();
+ const auto& [shape_params,
+ weights_precision,
+ activations_precision,
+ transpose_weights,
+ decompression_sub,
+ reshape_on_decompression,
+ extra_multiply,
+ per_tensor_zp,
+ dyn_quan_group_size] = GetParam();
init_input_shapes({shape_params.data_shape, {{}, {{shape_params.weights_shape}}}});
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/kv_cache.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/kv_cache.cpp
index 718f06adbbc..37b8eb5260f 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/kv_cache.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/kv_cache.cpp
@@ -22,10 +22,7 @@ class KVCacheTest : public testing::WithParamInterface<KVCacheTestParams>,
virtual public ov::test::SubgraphBaseTest {
public:
static std::string get_test_case_name(testing::TestParamInfo<KVCacheTestParams> obj) {
- std::vector<InputShape> input_shapes;
- ov::element::Type element_type;
-
- std::tie(input_shapes, element_type) = obj.param;
+ const auto& [input_shapes, element_type] = obj.param;
std::ostringstream result;
for (const auto& shape : input_shapes) {
@@ -50,10 +47,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::vector<InputShape> input_shapes;
- ov::element::Type element_type;
-
- std::tie(input_shapes, element_type) = GetParam();
+ const auto& [input_shapes, element_type] = GetParam();
init_input_shapes(input_shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/matmul_weights_decompression.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/matmul_weights_decompression.cpp
index 22fdd05bc8f..17f5c3fd086 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/matmul_weights_decompression.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/matmul_weights_decompression.cpp
@@ -67,27 +67,16 @@ class MatmulWeightsDecompression : public testing::WithParamInterface<MatmulWeig
virtual public ov::test::SubgraphBaseTest {
public:
static std::string get_test_case_name(testing::TestParamInfo<MatmulWeightsDecompressionParams> obj) {
- ShapeParams shape_params;
- ov::element::Type weights_precision;
- ov::element::Type activations_precision;
- bool transpose;
- bool decompression_sub;
- bool reshape_on_decompression;
- bool extra_multiply;
- bool per_tensor_zp;
- uint64_t dyn_quan_group_size;
- float abs_threshold_f16;
-
- std::tie(shape_params,
- weights_precision,
- activations_precision,
- transpose,
- decompression_sub,
- reshape_on_decompression,
- extra_multiply,
- per_tensor_zp,
- dyn_quan_group_size,
- abs_threshold_f16) = obj.param;
+ const auto& [shape_params,
+ weights_precision,
+ activations_precision,
+ transpose,
+ decompression_sub,
+ reshape_on_decompression,
+ extra_multiply,
+ per_tensor_zp,
+ dyn_quan_group_size,
+ abs_threshold_f16] = obj.param;
std::ostringstream result;
result << "data_shape=";
@@ -249,27 +238,16 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- ShapeParams shape_params;
- ov::element::Type weights_precision;
- ov::element::Type activations_precision;
- bool transpose_weights;
- bool decompression_sub;
- bool reshape_on_decompression;
- bool extra_multiply;
- bool per_tensor_zp;
- uint64_t dyn_quan_group_size;
- float abs_threshold_f16 = 1.0f;
-
- std::tie(shape_params,
- weights_precision,
- activations_precision,
- transpose_weights,
- decompression_sub,
- reshape_on_decompression,
- extra_multiply,
- per_tensor_zp,
- dyn_quan_group_size,
- abs_threshold_f16) = GetParam();
+ const auto& [shape_params,
+ weights_precision,
+ activations_precision,
+ transpose_weights,
+ decompression_sub,
+ reshape_on_decompression,
+ extra_multiply,
+ per_tensor_zp,
+ dyn_quan_group_size,
+ abs_threshold_f16] = GetParam();
init_input_shapes({shape_params.data_shape, {{}, {{shape_params.weights_shape}}}});
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/read_value_assign.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/read_value_assign.cpp
index f45009a5365..19e74a905ed 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/read_value_assign.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/read_value_assign.cpp
@@ -24,9 +24,7 @@ class ReadValueAssignGPUTest : virtual public ov::test::SubgraphBaseTest,
public testing::WithParamInterface<ReadValueAssignParams> {
public:
static std::string getTestCaseName(const testing::TestParamInfo<ReadValueAssignParams>& obj) {
- InputShape input_shapes;
- ov::element::Type input_precision;
- std::tie(input_shapes, input_precision) = obj.param;
+ const auto& [input_shapes, input_precision] = obj.param;
std::ostringstream result;
result << "IS=" << ov::test::utils::partialShape2str({input_shapes.first}) << "_";
@@ -40,9 +38,7 @@ public:
protected:
void SetUp() override {
- InputShape input_shapes;
- ov::element::Type input_precision;
- std::tie(input_shapes, input_precision) = GetParam();
+ const auto& [input_shapes, input_precision] = GetParam();
targetDevice = ov::test::utils::DEVICE_GPU;
init_input_shapes({input_shapes});
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/rms_norm_decomposition.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/rms_norm_decomposition.cpp
index fd7dd18c92a..457097cc639 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/rms_norm_decomposition.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/rms_norm_decomposition.cpp
@@ -47,10 +47,7 @@ class RMSNormDecomposition : public testing::WithParamInterface<RMSNormDecomposi
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<RMSNormDecompositionParams> obj) {
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, input_precision) = obj.param;
+ const auto& [input_shapes, input_precision] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -115,10 +112,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, input_precision) = GetParam();
+ const auto& [input_shapes, input_precision] = GetParam();
init_input_shapes(input_shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/split_reshape_eltwise.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/split_reshape_eltwise.cpp
index f69d04de482..431c7e0c4b0 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/split_reshape_eltwise.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/split_reshape_eltwise.cpp
@@ -33,12 +33,8 @@ public:
static std::string getTestCaseName(const testing::TestParamInfo<SplitReshapeEltwiseTestParams>& obj) {
SplitReshapeEltwiseTestParams test_params = obj.param;
std::ostringstream result;
- std::vector<InputShape> input_shapes;
- size_t axis;
- ov::element::Type precision;
- std::string target_device;
- std::tie(input_shapes, axis, precision, target_device) = test_params;
+ const auto& [input_shapes, axis, precision, target_device] = test_params;
result << "IS=";
for (const auto& shape : input_shapes) {
result << ov::test::utils::partialShape2str({shape.first}) << "_";
@@ -71,10 +67,9 @@ protected:
void SetUp() override {
SplitReshapeEltwiseTestParams test_params = this->GetParam();
- std::vector<InputShape> input_shapes;
- size_t axis;
- ov::element::Type model_type;
- std::tie(input_shapes, axis, model_type, targetDevice) = test_params;
+
+ const auto& [input_shapes, axis, model_type, _targetDevice] = test_params;
+ targetDevice = _targetDevice;
init_input_shapes(input_shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/swiglu_fusion.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/swiglu_fusion.cpp
index ddad986ae70..e0125a51d3f 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/swiglu_fusion.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/swiglu_fusion.cpp
@@ -22,10 +22,7 @@ class SwiGLUFusion : public testing::WithParamInterface<SwiGLUFusionParams>,
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(testing::TestParamInfo<SwiGLUFusionParams> obj) {
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, input_precision) = obj.param;
+ const auto& [input_shapes, input_precision] = obj.param;
std::ostringstream result;
result << "IS=(";
@@ -70,10 +67,7 @@ protected:
void SetUp() override {
targetDevice = ov::test::utils::DEVICE_GPU;
- std::vector<InputShape> input_shapes;
- ov::element::Type input_precision;
-
- std::tie(input_shapes, input_precision) = GetParam();
+ const auto& [input_shapes, input_precision] = GetParam();
init_input_shapes(input_shapes);
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/transpose_matmul_fusion.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/transpose_matmul_fusion.cpp
index 4432cbcf06d..365c1f1bab1 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/transpose_matmul_fusion.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/transpose_matmul_fusion.cpp
@@ -14,10 +14,7 @@ using TransposeOrderParams = std::tuple<std::vector<int64_t>, // allowed transp
class TransposeMatmulFuseTest : public ::testing::Test, public testing::WithParamInterface<TransposeOrderParams> {
public:
static std::string getTestCaseName(testing::TestParamInfo<TransposeOrderParams> obj) {
- std::vector<int64_t> target_order;
- ov::element::Type input_precision;
-
- std::tie(target_order, input_precision) = obj.param;
+ const auto& [target_order, input_precision] = obj.param;
std::ostringstream result;
result << "transpose_order=[";
@@ -29,7 +26,7 @@ public:
}
protected:
- std::shared_ptr<ov::Model> init_subgraph(ov::element::Type& input_precision, const std::vector<int64_t>& target_transpose_order) {
+ std::shared_ptr<ov::Model> init_subgraph(const ov::element::Type& input_precision, const std::vector<int64_t>& target_transpose_order) {
ov::PartialShape input_a_shape = ov::PartialShape{-1, -1, -1, -1};
ov::PartialShape input_b_shape = ov::PartialShape{-1, -1};
@@ -51,9 +48,7 @@ private:
};
TEST_P(TransposeMatmulFuseTest, smoke_allowed_transpose_order) {
- std::vector<int64_t> target_order;
- ov::element::Type input_precision;
- std::tie(target_order, input_precision) = GetParam();
+ const auto& [target_order, input_precision] = GetParam();
auto function = init_subgraph(input_precision, target_order);
std::string targetDevice = ov::test::utils::DEVICE_GPU;
@@ -97,11 +92,7 @@ using TransposesOrderParams = std::tuple<std::vector<int64_t>, // transpose_a o
class TransposeMatmulTransposeFuse3DTest : public ::testing::Test, public testing::WithParamInterface<TransposesOrderParams> {
public:
static std::string getTestCaseName(testing::TestParamInfo<TransposesOrderParams> obj) {
- std::vector<int64_t> target_order_a;
- std::vector<int64_t> target_order_c;
- ov::element::Type input_precision;
-
- std::tie(target_order_a, target_order_c, input_precision) = obj.param;
+ const auto& [target_order_a, target_order_c, input_precision] = obj.param;
std::ostringstream result;
result << "transpose_a_order=[";
@@ -117,7 +108,7 @@ public:
}
protected:
- std::shared_ptr<ov::Model> init_subgraph(ov::element::Type& input_precision,
+ std::shared_ptr<ov::Model> init_subgraph(const ov::element::Type& input_precision,
const std::vector<int64_t>& target_transpose_order_a,
const std::vector<int64_t>& target_transpose_order_c) {
ov::PartialShape input_a_shape = ov::PartialShape{-1, -1, -1};
@@ -144,10 +135,7 @@ private:
};
TEST_P(TransposeMatmulTransposeFuse3DTest, smoke_allowed_transposes_order) {
- std::vector<int64_t> target_order_a;
- std::vector<int64_t> target_order_c;
- ov::element::Type input_precision;
- std::tie(target_order_a, target_order_c, input_precision) = GetParam();
+ const auto& [target_order_a, target_order_c, input_precision] = GetParam();
auto function = init_subgraph(input_precision, target_order_a, target_order_c);
std::string targetDevice = ov::test::utils::DEVICE_GPU;
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/loop.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/loop.cpp
index 59ceb016547..a6c3e68a7fa 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/loop.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/loop.cpp
@@ -41,23 +41,8 @@ class DynamicShapeLoopTest : public testing::WithParamInterface<DynamicShapeLoop
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<DynamicShapeLoopParams> &obj) {
- bool static_iter_num;
- bool static_continue_cond;
- int64_t max_iter_num;
- int64_t dynamic_exit;
- int64_t axis;
- int64_t start_value;
- InputShape data_shapes;
- ov::element::Type model_type;
- std::string targetDevice;
- auto args_pack = std::tie(static_iter_num, max_iter_num, dynamic_exit, axis);
- std::tie(
- static_continue_cond,
- args_pack,
- start_value,
- data_shapes,
- model_type,
- targetDevice) = obj.param;
+ const auto& [static_continue_cond, args_pack, start_value, data_shapes, model_type, targetDevice] = obj.param;
+ const auto [static_iter_num, max_iter_num, dynamic_exit, axis] = args_pack;
std::ostringstream result;
result << "static_iter_num=" << std::to_string(static_iter_num) << "_";
@@ -104,7 +89,7 @@ protected:
model_type,
targetDevice) = GetParam();
- const auto inputShape = data_shapes.first;
+ const auto& inputShape = data_shapes.first;
const auto scalarShape = ov::Shape{};
init_input_shapes({data_shapes, data_shapes});
@@ -318,27 +303,8 @@ class DynamicShapeLoopDynamicInputTest : public testing::WithParamInterface<Dyna
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<DynamicShapeLoopDynamicInputParams> &obj) {
- bool static_iter_num;
- bool static_continue_cond;
- bool freeze_input;
- int64_t max_iter_num;
- int64_t dynamic_exit;
- int64_t axis;
- int64_t start_value;
- InputShape data_shapes;
- InputShape constant_shapes;
- ov::element::Type model_type;
- std::string targetDevice;
- auto args_pack = std::tie(static_iter_num, max_iter_num, dynamic_exit, axis);
- std::tie(
- static_continue_cond,
- args_pack,
- start_value,
- data_shapes,
- constant_shapes,
- model_type,
- targetDevice,
- freeze_input) = obj.param;
+ const auto& [static_continue_cond, args_pack, start_value, data_shapes, constant_shapes, model_type, targetDevice, freeze_input] = obj.param;
+ const auto [static_iter_num, max_iter_num, dynamic_exit, axis] = args_pack;
std::ostringstream result;
result << "static_iter_num=" << std::to_string(static_iter_num) << "_";
@@ -390,7 +356,7 @@ protected:
targetDevice,
freeze_input) = GetParam();
- const auto inputShape = data_shapes.first;
+ const auto& inputShape = data_shapes.first;
const auto scalarShape = ov::Shape{};
init_input_shapes({data_shapes, data_shapes, constant_shapes});
diff --git a/src/plugins/intel_gpu/tests/functional/subgraph_tests/tensor_iterator.cpp b/src/plugins/intel_gpu/tests/functional/subgraph_tests/tensor_iterator.cpp
index 6bbc21e5859..f6f63d1ee12 100644
--- a/src/plugins/intel_gpu/tests/functional/subgraph_tests/tensor_iterator.cpp
+++ b/src/plugins/intel_gpu/tests/functional/subgraph_tests/tensor_iterator.cpp
@@ -131,17 +131,7 @@ class DynamicTensorIteratorTest : public testing::WithParamInterface<DynamicTens
virtual public ov::test::SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<DynamicTensorIteratorParams> &obj) {
- LSTMType type;
- InputShape data_shapes;
- int32_t hidden_size;
- ov::op::RecurrentSequenceDirection seq_direction;
- std::string target_device;
- ov::element::Type model_type;
- std::tie(type, data_shapes,
- hidden_size,
- seq_direction,
- target_device,
- model_type) = obj.param;
+ const auto& [type, data_shapes, hidden_size, seq_direction, target_device, model_type] = obj.param;
std::ostringstream result;
result << "TestType=" << (type == LSTMType::LSTMCell? "LSTMCell" : "LSTMSequence") << "_";
result << "IS=(";
diff --git a/src/plugins/intel_gpu/tests/unit/module_tests/usm_memory_test.cpp b/src/plugins/intel_gpu/tests/unit/module_tests/usm_memory_test.cpp
index 02ef30874e6..52bb038176e 100644
--- a/src/plugins/intel_gpu/tests/unit/module_tests/usm_memory_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/module_tests/usm_memory_test.cpp
@@ -387,11 +387,7 @@ public:
};
TEST_P(offset_copy, basic) {
- allocation_type src_allocation_type;
- allocation_type dst_allocation_type;
- mem_test_params params;
- bool use_copy_to;
- std::tie(src_allocation_type, dst_allocation_type, params, use_copy_to) = GetParam();
+ const auto& [src_allocation_type, dst_allocation_type, params, use_copy_to] = GetParam();
const auto copy_size = params.size;
const auto src_size = params.src_offset + copy_size;
@@ -438,10 +434,7 @@ TEST_P(offset_copy, basic) {
}
TEST_P(offset_copy_host, basic) {
- allocation_type allocation_type;
- mem_test_params params;
- bool use_copy_to;
- std::tie(allocation_type, params, use_copy_to) = GetParam();
+ const auto& [allocation_type, params, use_copy_to] = GetParam();
const auto copy_size = params.size;
const auto src_size = params.src_offset + copy_size;
diff --git a/src/plugins/intel_gpu/tests/unit/passes/test_module_fusing_reorder.cpp b/src/plugins/intel_gpu/tests/unit/passes/test_module_fusing_reorder.cpp
index 81e2a97e242..ac345a4241b 100644
--- a/src/plugins/intel_gpu/tests/unit/passes/test_module_fusing_reorder.cpp
+++ b/src/plugins/intel_gpu/tests/unit/passes/test_module_fusing_reorder.cpp
@@ -309,9 +309,7 @@ TEST_P(can_fuse_reorder, surface_input_reorder) {
topology topology;
auto& engine = get_test_engine();
- data_types req_data_type;
- format::type req_format;
- std::tie(req_data_type, req_format) = GetParam();
+ const auto& [req_data_type, req_format] = GetParam();
const auto reorder_prim_id = "surface_input_reorder_prim";
auto weights_size = tensor{32, 1, 8, 8};
@@ -364,9 +362,7 @@ TEST_P(can_fuse_reorder, surface_input_reorder_batched) {
topology topology;
auto& engine = get_test_engine();
- data_types req_data_type;
- format::type req_format;
- std::tie(req_data_type, req_format) = GetParam();
+ const auto& [req_data_type, req_format] = GetParam();
const auto reorder_prim_id1 = "surface_input_reorder_prim1";
const auto reorder_prim_id2 = "surface_input_reorder_prim2";
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/activation_simple_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/activation_simple_gpu_test.cpp
index bc828f21cc1..d45f44b877c 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/activation_simple_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/activation_simple_gpu_test.cpp
@@ -1917,15 +1917,7 @@ struct activation_random_test : testing::TestWithParam<activation_random_test_pa
void execute_compare(const activation_random_test_params& params, bool check_result) {
auto& engine = get_test_engine();
- data_types input_type;
- format::type input_format;
- tensor input_size;
- activation_func func_type;
- activation_additional_params additional_params;
- padding padd;
- impl_types impl_type;
- bool is_caching_test;
- std::tie(input_type, input_format, input_size, func_type, additional_params, padd, impl_type, is_caching_test) = params;
+ const auto& [input_type, input_format, input_size, func_type, additional_params, padd, impl_type, is_caching_test] = params;
auto in_layout = layout(input_type, format::bfyx, input_size);
auto in_mem = engine.allocate_memory(in_layout);
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/adaptive_avg_pooling_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/adaptive_avg_pooling_gpu_test.cpp
index a2cd49a7048..01d527883dc 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/adaptive_avg_pooling_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/adaptive_avg_pooling_gpu_test.cpp
@@ -93,11 +93,8 @@ float getError<ov::float16>() {
struct PrintToStringParamName {
std::string operator()(const testing::TestParamInfo<AdaptiveAvgPoolingParamsWithLayout> &param) {
std::stringstream buf;
- AdaptiveAvgPoolingParams p;
- format::type plain_layout;
- format::type target_layout;
- bool is_caching_test;
- std::tie(p, plain_layout, target_layout, is_caching_test) = param.param;
+
+ const auto& [p, plain_layout, target_layout, is_caching_test] = param.param;
buf << " input tensor " << p.inputTensor.to_string()
<< " output tensor " << p.outputTensor.to_string()
<< " plain layout " << plain_layout
@@ -120,11 +117,8 @@ struct adaptive_avg_pooling_test
public:
void test() {
const auto data_type = ov::element::from<T>();
- AdaptiveAvgPoolingParams params;
- format::type plain_layout;
- format::type target_layout;
- bool is_caching_test;
- std::tie(params, plain_layout, target_layout, is_caching_test) = this->GetParam();
+
+ const auto& [params, plain_layout, target_layout, is_caching_test] = this->GetParam();
std::vector<T> input_data;
std::vector<T> expected;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/adaptive_max_pooling_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/adaptive_max_pooling_gpu_test.cpp
index 247a26c466a..7d0cec02e45 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/adaptive_max_pooling_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/adaptive_max_pooling_gpu_test.cpp
@@ -98,11 +98,8 @@ float getError<ov::float16>() {
struct PrintToStringParamName {
std::string operator()(const testing::TestParamInfo<AdaptiveMaxPoolingParamsWithLayout>& param) {
std::stringstream buf;
- AdaptiveMaxPoolingParams p;
- format::type plain_layout;
- format::type target_layout;
- bool is_caching_test;
- std::tie(p, plain_layout, target_layout, is_caching_test) = param.param;
+
+ const auto& [p, plain_layout, target_layout, is_caching_test] = param.param;
buf << " input tensor " << p.inputTensor.to_string()
<< " output tensor " << p.outputTensor.to_string()
<< " plain layout " << plain_layout
@@ -125,11 +122,8 @@ struct adaptive_max_pooling_test
public:
void test() {
const auto data_type = ov::element::from<T>();
- AdaptiveMaxPoolingParams params;
- format::type plain_layout;
- format::type target_layout;
- bool is_caching_test;
- std::tie(params, plain_layout, target_layout, is_caching_test) = this->GetParam();
+
+ const auto& [params, plain_layout, target_layout, is_caching_test] = this->GetParam();
const bool need_reorder = target_layout != plain_layout;
std::vector<T> input_data;
@@ -195,7 +189,7 @@ public:
}
);
- const auto get_reordered_indices_mem = [&]() {
+ const auto get_reordered_indices_mem = [&, plain_layout = plain_layout]() {
cldnn::topology reorder_topology;
reorder_topology.add(input_layout("indices", indices_layout));
reorder_topology.add(reorder("plane_indices", input_info("indices"), plain_layout, data_types::i32));
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/bucketize_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/bucketize_gpu_test.cpp
index 6f16ee74010..ad9f72710a1 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/bucketize_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/bucketize_gpu_test.cpp
@@ -26,10 +26,7 @@ using bucketize_test_params = std::tuple<bucketize_test_inputs<I, B, O>, format:
template <class I, class B, class O>
struct bucketize_test : testing::TestWithParam<bucketize_test_params<I, B, O>> {
void test() {
- format fmt = format::bfyx;
- bucketize_test_inputs<I, B, O> p;
- bool is_caching_test;
- std::tie(p, fmt, is_caching_test) = testing::TestWithParam<bucketize_test_params<I, B, O>>::GetParam();
+ const auto& [p, fmt, is_caching_test] = testing::TestWithParam<bucketize_test_params<I, B, O>>::GetParam();
auto& engine = get_test_engine();
const layout in_layout(ov::element::from<I>(),
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/convert_color_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/convert_color_gpu_test.cpp
index ce739aea50f..283fe324aa2 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/convert_color_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/convert_color_gpu_test.cpp
@@ -484,8 +484,8 @@ void createReferenceDataI420(const T* arg_y, const T* arg_u, const T* arg_v, U*
auto uv_index = (h / 2) * (image_w / 2) + (w / 2);
auto u_val = static_cast<float>(u_ptr[uv_index]);
auto v_val = static_cast<float>(v_ptr[uv_index]);
- T r, g, b;
- std::tie(r, g, b) = yuv_pixel_to_rgb<U>(y_val, u_val, v_val);
+
+ const auto& [r, g, b] = yuv_pixel_to_rgb<U>(y_val, u_val, v_val);
if (rgb_color_format) {
out[y_index * 3] = r;
out[y_index * 3 + 1] = g;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/ctc_loss_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/ctc_loss_gpu_test.cpp
index 50119f42998..f46d3c1fc79 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/ctc_loss_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/ctc_loss_gpu_test.cpp
@@ -45,10 +45,7 @@ template <class TF, class TI>
struct ctc_loss_gpu_test : public testing::TestWithParam<ctc_loss_test_params<TF, TI>> {
public:
void test() {
- format::type fmt;
- ctc_loss_test_inputs<TF, TI> p;
- bool is_caching_test;
- std::tie(p, fmt, is_caching_test) = testing::TestWithParam<ctc_loss_test_params<TF, TI>>::GetParam();
+ const auto& [p, fmt, is_caching_test] = testing::TestWithParam<ctc_loss_test_params<TF, TI>>::GetParam();
auto& engine = get_test_engine();
const auto float_data_type = ov::element::from<TF>();
@@ -124,10 +121,7 @@ public:
}
static std::string PrintToStringParamName(const testing::TestParamInfo<ctc_loss_test_params<TF, TI>>& info) {
- format::type fmt;
- ctc_loss_test_inputs<TF, TI> p;
- bool is_caching_test;
- std::tie(p, fmt, is_caching_test) = info.param;
+ const auto& [p, fmt, is_caching_test] = info.param;
std::ostringstream result;
result << "PreprocessCollapseRepeated=" << p.preprocess_collapse_repeated << "_";
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/dft_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/dft_gpu_test.cpp
index aefa690df11..ccdfe9bd2dc 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/dft_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/dft_gpu_test.cpp
@@ -97,12 +97,7 @@ template <class T>
struct dft_gpu_test : public testing::TestWithParam<dft_test_params> {
public:
void test() {
- format::type plain_format;
- format::type blocked_format;
- dft_type type;
- dft_params p;
- bool is_caching_test;
- std::tie(plain_format, blocked_format, type, p, is_caching_test) = testing::TestWithParam<dft_test_params>::GetParam();
+ const auto& [plain_format, blocked_format, type, p, is_caching_test] = testing::TestWithParam<dft_test_params>::GetParam();
auto& engine = get_test_engine();
@@ -137,12 +132,7 @@ public:
}
static std::string PrintToStringParamName(const testing::TestParamInfo<dft_test_params>& info) {
- format::type plain_format;
- format::type blocked_format;
- dft_type type;
- dft_params p;
- bool is_caching_test;
- std::tie(plain_format, blocked_format, type, p, is_caching_test) = info.param;
+ const auto& [plain_format, blocked_format, type, p, is_caching_test] = info.param;
std::ostringstream result;
result << "InputShape=" << vec2str(p.input_shape) << "_";
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/experimental_detectron_detection_output_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/experimental_detectron_detection_output_gpu_test.cpp
index 877d0e621b0..e167715fd9d 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/experimental_detectron_detection_output_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/experimental_detectron_detection_output_gpu_test.cpp
@@ -66,10 +66,7 @@ struct experimental_detectron_detection_output_test
: public ::testing::TestWithParam<ExperimentalDetectronDetectionOutputParamsWithLayout<T>> {
public:
void test() {
- ExperimentalDetectronDetectionOutputParams<T> param;
- format::type fmt;
- bool is_caching_test;
- std::tie(param, fmt, is_caching_test) = this->GetParam();
+ const auto& [param, fmt, is_caching_test] = this->GetParam();
auto data_type = ov::element::from<T>();
auto& engine = get_test_engine();
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/experimental_detectron_generate_proposals_single_image_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/experimental_detectron_generate_proposals_single_image_gpu_test.cpp
index 14a847c8e25..96309a34099 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/experimental_detectron_generate_proposals_single_image_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/experimental_detectron_generate_proposals_single_image_gpu_test.cpp
@@ -154,10 +154,8 @@ struct PrintToStringParamName {
template<class T>
std::string operator()(const testing::TestParamInfo<ExperimentalDetectronGenerateProposalsSingleImageParamsWithLayout<T> > &param) {
std::stringstream buf;
- ExperimentalDetectronGenerateProposalsSingleImageParams<T> p;
- format::type layout;
- bool is_caching_test;
- std::tie(p, layout, is_caching_test) = param.param;
+
+ const auto& [p, layout, is_caching_test] = param.param;
buf << "min_size=" << p.min_size << "_";
buf << "nms_threshold=" << p.nms_threshold << "_";
@@ -175,10 +173,7 @@ struct experimental_detectron_generate_proposals_single_image_test
: public ::testing::TestWithParam<ExperimentalDetectronGenerateProposalsSingleImageParamsWithLayout<T> > {
public:
void test() {
- ExperimentalDetectronGenerateProposalsSingleImageParams<T> param;
- format::type data_layout;
- bool is_caching_test;
- std::tie(param, data_layout, is_caching_test) = this->GetParam();
+ const auto& [param, data_layout, is_caching_test] = this->GetParam();
const auto data_type = ov::element::from<T>();
auto &engine = get_test_engine();
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/eye.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/eye.cpp
index 8620ac38c41..f6efebb2e77 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/eye.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/eye.cpp
@@ -29,15 +29,7 @@ template <class OutputType, class InputType>
class EyeTest : public ::testing::TestWithParam<eye_test_param<OutputType, InputType>> {
public:
void SetUp() override {
- format fmt{format::bfyx};
- InputType cols{};
- InputType rows{};
- InputType diag{};
- std::vector<InputType> batch_shape;
- std::vector<ov::Dimension::value_type> output_shape;
- std::vector<OutputType> expected_values;
- bool is_caching_test;
- std::tie(fmt, cols, rows, diag, batch_shape, output_shape, expected_values, is_caching_test) = this->GetParam();
+ const auto& [fmt, cols, rows, diag, batch_shape, output_shape, expected_values, is_caching_test] = this->GetParam();
auto num_rows = engine_.allocate_memory({ov::element::from<InputType>(), fmt, tensor{1}});
set_values<InputType>(num_rows, {rows});
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp
index 20414a989c2..4c3cbcd486f 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp
@@ -3893,13 +3893,8 @@ struct fully_connected_random_test : ::testing::TestWithParam<fully_connected_te
}
void run_test(bool is_caching_test = false) {
- shared_dims dims;
- size_t batch, input_f, input_x, input_y, output_f;
- format::type input_format, output_format;
- std::string kernel;
-
- std::tie(batch, dims, output_f, input_format, output_format, kernel) = GetParam();
- std::tie(input_f, input_x, input_y) = dims;
+ const auto& [batch, dims, output_f, input_format, output_format, kernel] = GetParam();
+ const auto [input_f, input_x, input_y] = dims;
auto input_data = rg.generate_random_4d<InputT>(batch, input_f, input_y, input_x, type_test_ranges<InputT>::min, type_test_ranges<InputT>::max, type_test_ranges<InputT>::k);
auto weights_data = rg.generate_random_4d<WeightsT>(output_f, input_f, input_y, input_x, type_test_ranges<WeightsT>::min, type_test_ranges<WeightsT>::max, type_test_ranges<WeightsT>::k);
@@ -4028,13 +4023,8 @@ struct fully_connected_random_test_3d : ::testing::TestWithParam<fully_connected
}
void run_test(bool is_caching_test = false) {
- shared_dims dims;
- size_t batch, input_f, input_x, input_y, output_y;
- format::type input_format, output_format;
- std::string kernel;
-
- std::tie(batch, dims, output_y, input_format, output_format, kernel) = GetParam();
- std::tie(input_f, input_x, input_y) = dims;
+ const auto& [batch, dims, output_y, input_format, output_format, kernel] = GetParam();
+ const auto [input_f, input_x, input_y] = dims;
auto input_data = rg.generate_random_4d<InputT>(batch, input_f, input_y, input_x, type_test_ranges<InputT>::min, type_test_ranges<InputT>::max, type_test_ranges<InputT>::k);
auto weights_data = rg.generate_random_4d<WeightsT>(output_y, input_y, 1, 1, type_test_ranges<WeightsT>::min, type_test_ranges<WeightsT>::max, type_test_ranges<WeightsT>::k);
@@ -4402,10 +4392,7 @@ class fc_quantized_random_test
public:
void run_random_test() {
- size_t b, in_f, in_x, in_y, out_f;
- format::type in_fmt;
-
- std::tie(b, in_f, in_x, in_y, out_f, in_fmt) = GetParam();
+ const auto& [b, in_f, in_x, in_y, out_f, in_fmt] = GetParam();
VVVVF<InputT> input_data = rg.generate_random_4d<InputT>(b, in_f, in_y, in_x, -127, 127);
VVVVF<int8_t> weights_data = rg.generate_random_4d<int8_t>(out_f, in_f, in_y, in_x, -127, 127);
@@ -5271,12 +5258,7 @@ struct dynamic_fully_connected_gpu : ::testing::TestWithParam<fully_connected_dy
}
void run_test(bool is_caching_test = false) {
- std::vector<ov::Dimension::value_type> batch_sizes;
- ov::Dimension::value_type input_f;
- ov::Dimension::value_type output_f;
- bool fc_3d = false;
-
- std::tie(batch_sizes, input_f, output_f, fc_3d) = GetParam();
+ const auto& [batch_sizes, input_f, output_f, fc_3d] = GetParam();
auto input_dt = ov::element::from<InputT>();
auto weights_dt = ov::element::from<WeightsT>();
@@ -5608,10 +5590,8 @@ class fc_random_types_test
public:
void run_random_test() {
tests::random_generator rg(GET_SUITE_NAME);
- size_t b, in_f, in_x, in_y, out_f;
- format::type in_fmt;
- std::tie(b, in_f, in_x, in_y, out_f, in_fmt) = GetParam();
+ const auto& [b, in_f, in_x, in_y, out_f, in_fmt] = GetParam();
quantization_t quant_data;
quant_data.output_low = std::numeric_limits<WeightsT>::lowest();
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/gather_tree_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/gather_tree_gpu_test.cpp
index 38e20ddcd6c..868e6bbf720 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/gather_tree_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/gather_tree_gpu_test.cpp
@@ -149,11 +149,8 @@ struct PrintToStringParamName {
template<class T>
std::string operator()(const testing::TestParamInfo<ParamsWithLayout<T> > &param) {
std::stringstream buf;
- Params<T> p;
- format::type plain_layout;
- format::type target_layout;
- bool is_caching_test;
- std::tie(p, plain_layout, target_layout, is_caching_test) = param.param;
+
+ const auto& [p, plain_layout, target_layout, is_caching_test] = param.param;
buf << " test case " << p.testcase_name
<< " plain layout " << plain_layout
<< " target layout " << target_layout
@@ -169,12 +166,8 @@ struct gather_tree_test
public:
void test() {
const auto data_type = ov::element::from<T>();
- Params<T> params;
- format::type plain_layout;
- format::type target_layout;
- bool is_caching_test;
- std::tie(params, plain_layout, target_layout, is_caching_test) = this->GetParam();
+ const auto& [params, plain_layout, target_layout, is_caching_test] = this->GetParam();
auto &engine = get_test_engine();
topology topology;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/generate_proposals_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/generate_proposals_gpu_test.cpp
index 10e5dd3d27c..0d99412b42f 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/generate_proposals_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/generate_proposals_gpu_test.cpp
@@ -280,10 +280,7 @@ struct generate_proposals_test
: public ::testing::TestWithParam<GenerateProposalsParamsWithLayout<T> > {
public:
void test() {
- GenerateProposalsParams<T> param;
- format::type data_layout;
- bool is_caching_test;
- std::tie(param, data_layout, is_caching_test) = this->GetParam();
+ const auto& [param, data_layout, is_caching_test] = this->GetParam();
const bool need_reorder = data_layout != format::bfyx;
const auto data_type = ov::element::from<T>();
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/grid_sample_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/grid_sample_gpu_test.cpp
index ec8cf82d975..12cc6ffeed6 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/grid_sample_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/grid_sample_gpu_test.cpp
@@ -49,10 +49,7 @@ template <class TD, class TG>
struct grid_sample_gpu_test : public testing::TestWithParam<grid_sample_test_params<TD, TG>> {
public:
void test() {
- format::type fmt;
- grid_sample_test_inputs<TD, TG> p;
- bool is_caching_test;
- std::tie(p, fmt, is_caching_test) = testing::TestWithParam<grid_sample_test_params<TD, TG>>::GetParam();
+ const auto& [p, fmt, is_caching_test] = testing::TestWithParam<grid_sample_test_params<TD, TG>>::GetParam();
auto& engine = get_test_engine();
const auto data_data_type = ov::element::from<TD>();
@@ -93,10 +90,7 @@ public:
}
static std::string PrintToStringParamName(const testing::TestParamInfo<grid_sample_test_params<TD, TG>>& info) {
- format::type fmt;
- grid_sample_test_inputs<TD, TG> p;
- bool is_caching_test;
- std::tie(p, fmt, is_caching_test) = info.param;
+ const auto& [p, fmt, is_caching_test] = info.param;
std::ostringstream result;
result << "TestName=" << p.test_name << ";";
@@ -704,10 +698,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_grid_sample_gpu_test_FLOAT16_FLOAT16_cached,
class grid_sample_gpu_dynamic : public ::testing::TestWithParam<grid_sample_test_params<float, float>> {};
TEST_P(grid_sample_gpu_dynamic, basic) {
- bool is_caching_test;
- format::type fmt;
- grid_sample_test_inputs<float, float> p;
- std::tie(p, fmt, is_caching_test) = testing::TestWithParam<grid_sample_test_params<float, float>>::GetParam();
+ const auto& [p, fmt, is_caching_test] = testing::TestWithParam<grid_sample_test_params<float, float>>::GetParam();
auto& engine = get_test_engine();
const auto data_data_type = data_types::f32;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/group_normalization_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/group_normalization_gpu_test.cpp
index 79a09216c2f..91d0f10cfbf 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/group_normalization_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/group_normalization_gpu_test.cpp
@@ -37,9 +37,13 @@ public:
GroupNormalizationGPUTest() = default;
void SetUp() override {
- std::vector<ov::Dimension::value_type> input_shape;
const auto& params = GetParam();
- std::tie(input_shape, num_groups_, epsilon_, in_format_, out_format_, output_pad_) = params;
+ const auto& [input_shape, _num_groups_, _epsilon_, _in_format_, _out_format_, _output_pad_] = params;
+ num_groups_ = _num_groups_;
+ epsilon_ = _epsilon_;
+ in_format_ = _in_format_;
+ out_format_ = _out_format_;
+ output_pad_ = _output_pad_;
std::copy(std::begin(input_shape), std::end(input_shape), std::back_inserter(data_shape_));
tests::random_generator rg{"GroupNormalizationGPUTest"};
data_ = rg.generate_random_1d<float>(ov::shape_size(input_shape), -1, 1);
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/matrix_nms_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/matrix_nms_gpu_test.cpp
index e9a46ed073f..adf845e0b27 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/matrix_nms_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/matrix_nms_gpu_test.cpp
@@ -54,10 +54,7 @@ template <class T>
struct matrix_nms_gpu_test : public testing::TestWithParam<matrix_nms_test_params> {
public:
void test() {
- format::type blocked_format;
- matrix_nms_test_inputs test_inputs;
- bool is_caching_test;
- std::tie(test_inputs, blocked_format, is_caching_test) = testing::TestWithParam<matrix_nms_test_params>::GetParam();
+ const auto& [test_inputs, blocked_format, is_caching_test] = testing::TestWithParam<matrix_nms_test_params>::GetParam();
const auto data_type = ov::element::from<T>();
const auto plain_format = format::bfyx;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/prior_box_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/prior_box_gpu_test.cpp
index 61d4ae8e20e..40f37a37bf2 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/prior_box_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/prior_box_gpu_test.cpp
@@ -45,14 +45,8 @@ public:
const auto output_data_type = ov::element::from<OutputType>();
const auto plain_format = format::bfyx;
- format::type target_format;
- std::vector<InputType> output_size;
- std::vector<InputType> image_size;
- prior_box_attributes attrs;
- std::vector<OutputType> expected_values;
-
auto &engine = get_test_engine();
- std::tie(target_format, output_size, image_size, attrs, expected_values) = this->GetParam();
+ const auto& [target_format, output_size, image_size, attrs, expected_values] = this->GetParam();
auto layout_output_size_input = layout{input_data_type, plain_format, tensor{2}};
auto layout_image_size_input = layout{input_data_type, plain_format, tensor{2}};
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/reorg_yolo_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/reorg_yolo_gpu_test.cpp
index f7356f03938..a8fa30c16eb 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/reorg_yolo_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/reorg_yolo_gpu_test.cpp
@@ -274,10 +274,8 @@ struct PrintToStringParamName {
template<class T>
std::string operator()(const testing::TestParamInfo<ReorgYoloParamsWithLayout<T> > &param) {
std::stringstream buf;
- ReorgYoloParams<T> p;
- format::type target_format;
- bool should_fail;
- std::tie(p, target_format, should_fail) = param.param;
+
+ const auto& [p, target_format, should_fail] = param.param;
buf << "InputTensor=" << to_string(p.inputTensor)
<< ".stride=" << p.stride
<< ".TargetLayout=" << fmt_to_str(target_format);
@@ -291,10 +289,7 @@ struct reorg_yolo_test
: public ::testing::TestWithParam<ReorgYoloParamsWithLayout<T> > {
public:
void test(bool is_caching_test) {
- ReorgYoloParams<T> params;
- format::type target_format;
- bool should_fail;
- std::tie(params, target_format, should_fail) = this->GetParam();
+ const auto& [params, target_format, should_fail] = this->GetParam();
if (should_fail) {
ASSERT_ANY_THROW(run_test(params, target_format, is_caching_test));
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/roi_pooling_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/roi_pooling_gpu_test.cpp
index d7b133bf9d2..f4fd36cad48 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/roi_pooling_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/roi_pooling_gpu_test.cpp
@@ -117,13 +117,7 @@ template <class T>
struct roi_pooling_gpu_test : public testing::TestWithParam<roi_pooling_test_params<T>> {
public:
void test(bool is_caching_test) {
- format::type fmt;
- pooling_mode mode;
- bool position_sensitive;
- T threshold;
- roi_pooling_test_inputs<T> p;
- std::tie(p, mode, position_sensitive, threshold, fmt) =
- testing::TestWithParam<roi_pooling_test_params<T>>::GetParam();
+ const auto& [p, mode, position_sensitive, threshold, fmt] = testing::TestWithParam<roi_pooling_test_params<T>>::GetParam();
auto& engine = get_test_engine();
const auto data_type = ov::element::from<T>();
@@ -205,12 +199,7 @@ public:
}
static std::string PrintToStringParamName(const testing::TestParamInfo<roi_pooling_test_params<T>>& info) {
- format::type fmt;
- pooling_mode mode;
- bool position_sensitive;
- roi_pooling_test_inputs<T> p;
- T threshold;
- std::tie(p, mode, position_sensitive, threshold, fmt) = info.param;
+ const auto& [p, mode, position_sensitive, threshold, fmt] = info.param;
auto mode_str = mode == pooling_mode::max ? "max"
: mode == pooling_mode::bilinear ? "bilinear"
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/roll_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/roll_gpu_test.cpp
index ec741819346..aac2256dd73 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/roll_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/roll_gpu_test.cpp
@@ -38,9 +38,7 @@ using roll_test_params = std::tuple<roll_test_input<T>, format::type>;
template <class T>
struct roll_test : testing::TestWithParam<roll_test_params<T>> {
void test(bool is_caching_test) {
- roll_test_input<T> p;
- format::type input_format;
- std::tie(p, input_format) = testing::TestWithParam<roll_test_params<T>>::GetParam();
+ const auto& [p, input_format] = testing::TestWithParam<roll_test_params<T>>::GetParam();
auto& engine = get_test_engine();
format::type plane_format = format::get_default_format(p.input_shape.size());
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/scatter_elements_update_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/scatter_elements_update_gpu_test.cpp
index 6fb0ef50d21..69cb8d3ef21 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/scatter_elements_update_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/scatter_elements_update_gpu_test.cpp
@@ -262,12 +262,8 @@ struct PrintToStringParamName {
template<typename T, typename T_IND>
std::string operator()(const testing::TestParamInfo<ScatterElementsUpdateParamsWithFormat<T, T_IND> > &param) {
std::stringstream buf;
- ScatterElementsUpdateParams<T, T_IND> p;
- format::type plain_format;
- format::type target_data_format;
- format::type target_indices_format;
- format::type target_updates_format;
- std::tie(p, plain_format, target_data_format, target_indices_format, target_updates_format) = param.param;
+
+ const auto& [p, plain_format, target_data_format, target_indices_format, target_updates_format] = param.param;
buf << "_axis=" << p.axis
<< "_data=" << p.data_tensor.to_string()
<< "_indices=" << p.indices_tensor.to_string()
@@ -281,11 +277,8 @@ struct PrintToStringParamName {
template<typename T, typename T_IND>
std::string operator()(const testing::TestParamInfo<ScatterElementsUpdateReduceParamsWithFormat<T, T_IND> > &param) {
std::stringstream buf;
- ScatterElementsUpdateParams<T, T_IND> p;
- ScatterElementsUpdateOp::Reduction mode;
- bool use_init_value;
- format::type plain_format;
- std::tie(p, mode, use_init_value, plain_format) = param.param;
+
+ const auto& [p, mode, use_init_value, plain_format] = param.param;
using ov::op::operator<<;
buf << "_axis=" << p.axis
<< "_mode=" << mode
@@ -305,13 +298,10 @@ public:
void test(bool is_caching_test) {
const auto data_type = ov::element::from<T>();
const auto indices_type = ov::element::from<T_IND>();
- ScatterElementsUpdateParams<T, T_IND> params;
- format::type plain_format;
- format::type target_data_format;
- format::type target_indices_format;
- format::type target_updates_format;
- std::tie(params, plain_format, target_data_format, target_indices_format, target_updates_format) = this->GetParam();
+ const auto& [params, plain_format, target_data_format, _target_indices_format, _target_updates_format] = this->GetParam();
+ auto target_indices_format = _target_indices_format;
+ auto target_updates_format = _target_updates_format;
auto expected = generateReferenceOutput(plain_format, params, ov::op::v12::ScatterElementsUpdate::Reduction::NONE, false);
if (target_indices_format == format::any) {
target_indices_format = target_data_format;
@@ -404,11 +394,8 @@ public:
void test(bool is_caching_test) {
const auto data_type = ov::element::from<T>();
const auto indices_type = ov::element::from<T_IND>();
- ScatterElementsUpdateParams<T, T_IND> params;
- format::type plain_format;
- ScatterElementsUpdateOp::Reduction mode;
- bool use_init_value;
- std::tie(params, mode, use_init_value, plain_format) = this->GetParam();
+
+ const auto& [params, mode, use_init_value, plain_format] = this->GetParam();
auto expected = generateReferenceOutput(plain_format, params, mode, use_init_value);
auto& engine = get_test_engine();
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/softmax_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/softmax_gpu_test.cpp
index 35d8f4666b8..97d279cf80f 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/softmax_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/softmax_gpu_test.cpp
@@ -911,10 +911,8 @@ struct PrintToStringParamName {
template<class T>
std::string operator()(const testing::TestParamInfo<SoftmaxParamsWithFormat<T> > &param) {
std::stringstream buf;
- SoftmaxParams<T> p;
- format::type plain_format;
- format::type target_format;
- std::tie(p, plain_format, target_format) = param.param;
+
+ const auto& [p, plain_format, target_format] = param.param;
buf << "_inputTensor=" << p.input_tensor.to_string()
<< "_axis=" << p.axis
<< "_plainFormat=" << fmt_to_str(plain_format)
@@ -932,11 +930,8 @@ struct softmax_gpu_formats_test
public:
void test(bool is_caching_test) {
const auto data_type = ov::element::from<T>();
- SoftmaxParams<T> params;
- format::type plain_format;
- format::type target_format;
- std::tie(params, plain_format, target_format) = this->GetParam();
+ const auto& [params, plain_format, target_format] = this->GetParam();
auto& engine = get_test_engine();
const auto input = engine.allocate_memory({data_type, plain_format, params.input_tensor});
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/tile_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/tile_gpu_test.cpp
index b22efae70a2..3b37992678c 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/tile_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/tile_gpu_test.cpp
@@ -718,10 +718,8 @@ struct PrintToStringParamName {
template<class T>
std::string operator()(const testing::TestParamInfo<ParamsWithLayout<T> > &param) {
std::stringstream buf;
- Params<T> p;
- format::type plain_layout;
- format::type target_layout;
- std::tie(p, plain_layout, target_layout) = param.param;
+
+ const auto& [p, plain_layout, target_layout] = param.param;
buf << " input tensor " << p.input_tensor.to_string()
<< " output tensor " << p.output_tensor.to_string()
<< " plain layout " << plain_layout
@@ -737,11 +735,8 @@ struct tile_test
public:
void test(bool is_caching_test) {
const auto data_type = ov::element::from<T>();
- Params<T> params;
- format::type plain_layout;
- format::type target_layout;
- std::tie(params, plain_layout, target_layout) = this->GetParam();
+ const auto& [params, plain_layout, target_layout] = this->GetParam();
const bool need_reorder = target_layout != plain_layout;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/unique_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/unique_gpu_test.cpp
index 5bfee149d6f..704cf55649e 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/unique_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/unique_gpu_test.cpp
@@ -44,9 +44,7 @@ template <class ElemT, class IndexT, class CountT>
struct unique_gpu_test : public testing::TestWithParam<unique_test_params<ElemT, IndexT, CountT>> {
public:
void test() {
- format::type fmt;
- unique_test_inputs<ElemT, IndexT, CountT> p;
- std::tie(p, fmt) = testing::TestWithParam<unique_test_params<ElemT, IndexT, CountT>>::GetParam();
+ const auto& [p, fmt] = testing::TestWithParam<unique_test_params<ElemT, IndexT, CountT>>::GetParam();
auto& engine = get_test_engine();
const auto elem_data_type = ov::element::from<ElemT>();
@@ -113,9 +111,7 @@ public:
static std::string PrintToStringParamName(
const testing::TestParamInfo<unique_test_params<ElemT, IndexT, CountT>>& info) {
- format::type fmt;
- unique_test_inputs<ElemT, IndexT, CountT> p;
- std::tie(p, fmt) = info.param;
+ const auto& [p, fmt] = info.param;
std::ostringstream result;
result << "data_shape=" << vec2str(p.data_shape) << "; ";
diff --git a/src/plugins/intel_gpu/tests/unit/transformations/move_fc_reshape_to_weights.cpp b/src/plugins/intel_gpu/tests/unit/transformations/move_fc_reshape_to_weights.cpp
index 1b4573a30e2..1a123481b55 100644
--- a/src/plugins/intel_gpu/tests/unit/transformations/move_fc_reshape_to_weights.cpp
+++ b/src/plugins/intel_gpu/tests/unit/transformations/move_fc_reshape_to_weights.cpp
@@ -32,10 +32,7 @@ using MoveFCReshapeToWeightsParams = std::tuple<std::pair<ov::PartialShape, ov::
class MoveFCReshapeToWeightsTests : public TransformationTestsF, public WithParamInterface<MoveFCReshapeToWeightsParams> {
public:
static std::string get_test_case_name(testing::TestParamInfo<MoveFCReshapeToWeightsParams> obj) {
- std::pair<ov::PartialShape, ov::Shape> input_shapes;
- bool add_transpose;
- bool add_subtract;
- std::tie(input_shapes, add_transpose, add_subtract) = obj.param;
+ const auto& [input_shapes, add_transpose, add_subtract] = obj.param;
std::ostringstream result;
result << "Input_shape=(" << input_shapes.first << ")_Weights_shape=(" << input_shapes.second
@@ -85,10 +82,8 @@ public:
protected:
void SetUp() override {
TransformationTestsF::SetUp();
- std::pair<ov::PartialShape, ov::Shape> input_shapes;
- bool add_transpose;
- bool add_subtract;
- std::tie(input_shapes, add_transpose, add_subtract) = this->GetParam();
+
+ const auto& [input_shapes, add_transpose, add_subtract] = this->GetParam();
ov::Shape ref_weights_shape = input_shapes.second;
ref_weights_shape.erase(ref_weights_shape.begin());
diff --git a/src/plugins/intel_gpu/tests/unit/transformations/sdpa_opt_test.cpp b/src/plugins/intel_gpu/tests/unit/transformations/sdpa_opt_test.cpp
index 2f2ffdcb54b..cbfab8bbefb 100644
--- a/src/plugins/intel_gpu/tests/unit/transformations/sdpa_opt_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/transformations/sdpa_opt_test.cpp
@@ -140,15 +140,7 @@ public:
}
static std::string get_test_case_name(testing::TestParamInfo<Params> obj) {
- bool with_rearrange;
- bool with_mask;
- bool with_scale;
- bool causal;
- ov::Dimension batch;
- ov::element::Type model_element_type;
- size_t num_groups;
- std::vector<int64_t> qkv_order;
- std::tie(with_rearrange, with_mask, with_scale, causal, batch, model_element_type, num_groups, qkv_order) = obj.param;
+ const auto& [with_rearrange, with_mask, with_scale, causal, batch, model_element_type, num_groups, qkv_order] = obj.param;
std::ostringstream result;
result << "with_rearrange=" << with_rearrange << "_";
result << "with_mask=" << with_mask << "_";
@@ -163,16 +155,7 @@ public:
};
TEST_P(SDPAOptimizationTestsP, PassesSequence) {
- bool with_rearrange;
- bool with_mask;
- bool with_scale;
- bool causal;
- ov::Dimension batch;
- ov::element::Type model_element_type;
- size_t num_groups;
- std::vector<int64_t> qkv_order;
-
- std::tie(with_rearrange, with_mask, with_scale, causal, batch, model_element_type, num_groups, qkv_order) = GetParam();
+ const auto& [with_rearrange, with_mask, with_scale, causal, batch, model_element_type, num_groups, qkv_order] = GetParam();
model = ov::test::utils::make_llm_kv_cache_sdpa_pattern(batch,
32,
128,
diff --git a/src/plugins/intel_gpu/tests/unit/transformations/sink_reshape_test.cpp b/src/plugins/intel_gpu/tests/unit/transformations/sink_reshape_test.cpp
index 142d51856f6..baf90089b44 100644
--- a/src/plugins/intel_gpu/tests/unit/transformations/sink_reshape_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/transformations/sink_reshape_test.cpp
@@ -33,11 +33,8 @@ class SinkReshapeTests : public TransformationTestsF, public WithParamInterface<
public:
static std::string get_test_case_name(testing::TestParamInfo<SinkReshapeParams> obj) {
std::pair<ov::PartialShape, ov::Shape> input_shapes;
- bool add_eltwise;
- bool add_activation;
- bool eligible_rotataion;
- bool eligible_reshape;
- std::tie(add_eltwise, add_activation, eligible_rotataion, eligible_reshape) = obj.param;
+
+ const auto& [add_eltwise, add_activation, eligible_rotataion, eligible_reshape] = obj.param;
std::ostringstream result;
result << ")_add_eltwise=" << add_eltwise << "_add_activationt=" << add_activation << "_eligible_rotation=" << eligible_rotataion << "_eligible_reshape=" << eligible_reshape;
@@ -101,11 +98,8 @@ public:
protected:
void SetUp() override {
TransformationTestsF::SetUp();
- bool add_eltwise;
- bool add_activation;
- bool eligible_rotation;
- bool eligible_reshape;
- std::tie(add_eltwise, add_activation, eligible_rotation, eligible_reshape) = this->GetParam();
+
+ const auto& [add_eltwise, add_activation, eligible_rotation, eligible_reshape] = this->GetParam();
model = init_model(add_eltwise, add_activation, eligible_rotation, eligible_reshape, true);
if (!eligible_rotation || !eligible_reshape)