OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[PyOV] remove deprecated api (#26442)
Anastasia Kuporosova1e1787c015ec
diff --git a/src/bindings/python/src/pyopenvino/graph/node.cpp b/src/bindings/python/src/pyopenvino/graph/node.cppindex 422697b12f9..46cc6bd5e80 100644--- a/src/bindings/python/src/pyopenvino/graph/node.cpp+++ b/src/bindings/python/src/pyopenvino/graph/node.cpp@@ -440,12 +440,6 @@ void regclass_graph_Node(py::module m) {util::DictAttributeDeserializer dict_deserializer(attr_dict, variables);self->visit_attributes(dict_deserializer);});- node.def("validate", [](const std::shared_ptr<ov::Node>& self) {- Common::utils::deprecation_warning("validate",- "2024.4",- "Please use 'constructor_validate_and_infer_types' method instead.");- return self->constructor_validate_and_infer_types();- });node.def("constructor_validate_and_infer_types", [](const std::shared_ptr<ov::Node>& self) {return self->constructor_validate_and_infer_types();});diff --git a/src/bindings/python/tests/test_graph/test_loop.py b/src/bindings/python/tests/test_graph/test_loop.pyindex de22d3a92b8..8b9d58146f7 100644--- a/src/bindings/python/tests/test_graph/test_loop.py+++ b/src/bindings/python/tests/test_graph/test_loop.py@@ -97,8 +97,6 @@ def test_loop_inputs_are_nodes():loop.set_invariant_input(y_i, param_y.output(0))loop.set_merged_input(m_body, param_m.output(0), zo.output(0))loop.set_special_body_ports([-1, 0])- with pytest.warns(DeprecationWarning, match="validate is deprecated and will be removed in version 2024.4."):- loop.validate()loop.constructor_validate_and_infer_types()diff --git a/src/bindings/python/tests/test_graph/test_node_factory.py b/src/bindings/python/tests/test_graph/test_node_factory.pyindex 33f3b98590f..469adbb2a7f 100644--- a/src/bindings/python/tests/test_graph/test_node_factory.py+++ b/src/bindings/python/tests/test_graph/test_node_factory.py@@ -78,8 +78,6 @@ def test_node_factory_empty_topk_with_args_and_attrs():node.set_attribute("axis", 1)node.set_attribute("mode", "max")node.set_attribute("sort", "value")- with pytest.warns(DeprecationWarning, match="validate is deprecated and will be removed in version 2024.4."):- node.validate()node.constructor_validate_and_infer_types()