From 8d90c11a356ad75bf3d02e670d81f36fbf28ce75 Mon Sep 17 00:00:00 2001 From: Maxim Vafin Date: Tue, 28 Mar 2023 20:47:35 +0200 Subject: [PATCH] Fix sporadic fails when beta==0 in baddmm (#16610) * Fix sporadic fails when beta==0 in baddmm * Remove sporadic test loop --- tests/layer_tests/pytorch_tests/test_addmm.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/layer_tests/pytorch_tests/test_addmm.py b/tests/layer_tests/pytorch_tests/test_addmm.py index 791732f18ef..f73894766e8 100644 --- a/tests/layer_tests/pytorch_tests/test_addmm.py +++ b/tests/layer_tests/pytorch_tests/test_addmm.py @@ -83,8 +83,14 @@ class TestBAddBMM(PytorchLayerTest): ]) @pytest.mark.parametrize("alpha,beta", - [(1., 1.), (0., 1.), (1., 0.), (1., 2.), (2., 1.), (-5., -6.), (3., 4.), (0.5, 0.75), - (1, 1)]) + [ # beta==0 in some cases produce nan in pytorch + (1., 1.), + (0., 1.), + (-5., -6.), + (3., 4.), + (0.5, 0.75), + (1, 1) + ]) @pytest.mark.nightly @pytest.mark.precommit def test_baddbmm(self, kwargs_to_prepare_input, alpha, beta, ie_device, precision, ir_version):