Remove unsued map initialization (#11621)

Details:
- Unused variable removed.
- Added pytest markers declaration to avoid useless warnings.
Tickets:
70158
This commit is contained in:
Tomasz Jankowski 2022-05-05 00:50:34 +02:00 committed by GitHub
parent b92e10ff6e
commit 0babf20bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -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<std::size_t, std::string> 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();

View File

@ -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)

View File

@ -0,0 +1,5 @@
[pytest]
markers =
nightly
precommit
timeout