From 0babf20bd2f4cd3f0be3c025d91ea55526b36fb2 Mon Sep 17 00:00:00 2001 From: Tomasz Jankowski Date: Thu, 5 May 2022 00:50:34 +0200 Subject: [PATCH] Remove unsued map initialization (#11621) Details: - Unused variable removed. - Added pytest markers declaration to avoid useless warnings. Tickets: 70158 --- src/frontends/onnx/frontend/src/op/loop.cpp | 5 ----- tests/layer_tests/onnx_tests/test_loop.py | 3 ++- tests/layer_tests/pytest.ini | 5 +++++ 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 tests/layer_tests/pytest.ini diff --git a/src/frontends/onnx/frontend/src/op/loop.cpp b/src/frontends/onnx/frontend/src/op/loop.cpp index 98ac2c96dc8..c465d0e6d07 100644 --- a/src/frontends/onnx/frontend/src/op/loop.cpp +++ b/src/frontends/onnx/frontend/src/op/loop.cpp @@ -43,11 +43,6 @@ OutputVector loop(const Node& node) { const OutputVector loop_carried_dependencies{std::next(ng_inputs.begin(), 2), ng_inputs.end()}; - std::map loop_carried_dependencies_map; - for (std::size_t i = 0; i < loop_carried_dependencies.size(); i++) { - loop_carried_dependencies_map[i + 2] = loop_carried_dependencies[i].get_tensor().get_any_name(); - } - const auto& subgraphs = node.get_subgraphs(); auto body_graph = subgraphs.at("body"); auto body_outputs = body_graph->get_ng_outputs(); diff --git a/tests/layer_tests/onnx_tests/test_loop.py b/tests/layer_tests/onnx_tests/test_loop.py index 4e469da6e43..1a315a37a5c 100644 --- a/tests/layer_tests/onnx_tests/test_loop.py +++ b/tests/layer_tests/onnx_tests/test_loop.py @@ -282,6 +282,7 @@ class TestLoop(OnnxRuntimeLayerTest): @pytest.mark.precommit @pytest.mark.timeout(250) def test_loop_in_loop_simple_precommit(self, ie_device, precision, ir_version, temp_dir, api_2): - pytest.skip('The model used in the test is incorrect according to ONNX standart: 70158') + if ie_device == 'GPU': + pytest.skip('Loop not supported on GPU') self._test(*self.create_loop_in_loop(), ie_device, precision, ir_version, temp_dir=temp_dir, infer_timeout=150, api_2=api_2) diff --git a/tests/layer_tests/pytest.ini b/tests/layer_tests/pytest.ini new file mode 100644 index 00000000000..b8e3193d8e1 --- /dev/null +++ b/tests/layer_tests/pytest.ini @@ -0,0 +1,5 @@ +[pytest] +markers = + nightly + precommit + timeout