Skip to content

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

[CPU] Fix deprecation warnings and remove deprecated warning suppression (#30418)

Arseniy Obolenskiy8e457f6a7144
diff --git a/src/common/snippets/src/pass/hash.cpp b/src/common/snippets/src/pass/hash.cpp
index 5c891570baf..2cd83e5d6c7 100644
--- a/src/common/snippets/src/pass/hash.cpp
+++ b/src/common/snippets/src/pass/hash.cpp
@@ -150,7 +150,6 @@ public:
void ovfunction_2_hash(uint64_t& hash, const ov::Model& model);
-OPENVINO_SUPPRESS_DEPRECATED_START
class SnippetsHasher : public ov::AttributeVisitor {
uint64_t& m_hash;
const std::string& m_node_type_name;
@@ -235,7 +234,6 @@ public:
ovfunction_2_hash(m_hash, *adapter.get());
}
};
-OPENVINO_SUPPRESS_DEPRECATED_END
std::unordered_map<ov::Node*, int> create_layer_ids(const ov::Model& model) {
std::unordered_map<ov::Node*, int> layer_ids;
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/convolution.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/convolution.cpp
index 78e47e3aed4..f8add254e9a 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/convolution.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/convolution.cpp
@@ -11,7 +11,7 @@ using namespace CPUTestUtils;
namespace ov {
namespace test {
namespace Convolution {
-OPENVINO_SUPPRESS_DEPRECATED_START
+
/* ============= Convolution (Gemm 1D) ============= */
INSTANTIATE_TEST_SUITE_P(smoke_Conv_1D_GEMM_FP32,
ConvolutionLayerCPUTest,
diff --git a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/single_layer_tests/gather.cpp b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/single_layer_tests/gather.cpp
index 2948600f6be..ac676fb17fe 100644
--- a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/single_layer_tests/gather.cpp
+++ b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/single_layer_tests/gather.cpp
@@ -284,10 +284,10 @@ std::vector<ov::test::GatherStringParamsTuple> string_cases_params{
const auto gatherWithStringParams = testing::ValuesIn(string_cases_params);
-INSTANTIATE_TEST_CASE_P(smoke_gather_string,
- GatherStringWithIndicesDataLayerTest,
- gatherWithStringParams,
- GatherStringWithIndicesDataLayerTest::getTestCaseName);
+INSTANTIATE_TEST_SUITE_P(smoke_gather_string,
+ GatherStringWithIndicesDataLayerTest,
+ gatherWithStringParams,
+ GatherStringWithIndicesDataLayerTest::getTestCaseName);
const std::vector<ov::element::Type> mixed_model_types = {
ov::element::f16,