Skip to content

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

[ONNX][Layer Test] test_lstm_simple_precommit failing with TimeoutError (#33493)

Szymon Gutaj742424ccbba6
diff --git a/tests/layer_tests/common/layer_test_class.py b/tests/layer_tests/common/layer_test_class.py
index 4fcb7078842..9629541c3df 100644
--- a/tests/layer_tests/common/layer_test_class.py
+++ b/tests/layer_tests/common/layer_test_class.py
@@ -140,8 +140,10 @@ class CommonLayerTest:
# Feed dict for each input is filled with random number.
# It is possible to redefine this function and generate your own input
def _prepare_input(self, inputs_dict):
+ rng = np.random.default_rng(43)
+
for input in inputs_dict.keys():
- inputs_dict[input] = np.random.randint(-10, 10, inputs_dict[input]).astype(np.float32)
+ inputs_dict[input] = rng.integers(-10, 10, inputs_dict[input]).astype(np.float32)
return inputs_dict
def compare_ie_results_with_framework(self, infer_res, framework_res, framework_eps):
diff --git a/tests/layer_tests/onnx_tests/test_lstm.py b/tests/layer_tests/onnx_tests/test_lstm.py
index b3acdee700e..781079a4c3e 100644
--- a/tests/layer_tests/onnx_tests/test_lstm.py
+++ b/tests/layer_tests/onnx_tests/test_lstm.py
@@ -145,9 +145,8 @@ class TestLSTM(OnnxRuntimeLayerTest):
@pytest.mark.parametrize('cell_type', ["LSTM", "GRU", "RNN"])
def test_lstm_simple_precommit(self, direction, cell_type, ie_device, precision, ir_version,
temp_dir):
- pytest.skip("Ticket - 161790")
self._test(*self.create_lstm(direction, cell_type), ie_device, precision, ir_version,
- temp_dir=temp_dir, infer_timeout=150)
+ temp_dir=temp_dir, infer_timeout=240)
# LSTM/RNN/GRU Sequence Generation
@pytest.mark.parametrize('direction', ["forward", "bidirectional", "reverse"])