@@ -4949,7 +4949,13 @@ OPENVINO_TEST(${BACKEND_NAME}, onnx_model_random_uniform) {
4949
4949
const auto model = convert_model (" random_uniform.onnx" );
4950
4950
4951
4951
auto test_case = ov::test::TestCase (model, s_device);
4952
- test_case.add_expected_output<float>(Shape{2, 2}, {43.45518f, 48.67585f, 42.227386f, 40.86294f});
4952
+
4953
+ if (std::string (" ${BACKEND_NAME}" ) == std::string (" IE_GPU" )) {
4954
+ test_case.add_expected_output <float >(Shape{2 , 2 }, {40 .96875f , 43 .4375f , 49 .4375f , 45 .46875f });
4955
+ } else {
4956
+ test_case.add_expected_output <float >(Shape{2 , 2 }, {43 .70129f , 45 .26042f , 43 .48503f , 46 .43743f });
4957
+ }
4958
+
4953
4959
test_case.run ();
4954
4960
}
4955
4961
@@ -4958,15 +4964,27 @@ OPENVINO_TEST(${BACKEND_NAME}, onnx_model_random_uniform_like) {
4958
4964
4959
4965
auto test_case = ov::test::TestCase (model, s_device);
4960
4966
test_case.add_input <float >(Shape{2 , 2 }, {41 , 42 , 43 , 44 });
4961
- test_case.add_expected_output<float>(Shape{2, 2}, {43.45518f, 48.67585f, 42.227386f, 40.86294f});
4967
+
4968
+ if (std::string (" ${BACKEND_NAME}" ) == std::string (" IE_GPU" )) {
4969
+ test_case.add_expected_output <float >(Shape{2 , 2 }, {40 .96875f , 43 .4375f , 49 .4375f , 45 .46875f });
4970
+ } else {
4971
+ test_case.add_expected_output <float >(Shape{2 , 2 }, {43 .70129f , 45 .26042f , 43 .48503f , 46 .43743f });
4972
+ }
4973
+
4962
4974
test_case.run ();
4963
4975
}
4964
4976
4965
4977
OPENVINO_TEST (${BACKEND_NAME}, onnx_model_random_normal) {
4966
4978
const auto model = convert_model (" random_normal.onnx" );
4967
4979
4968
4980
auto test_case = ov::test::TestCase (model, s_device);
4969
- test_case.add_expected_output<float>(Shape{2, 2}, {83.052017f, 55.496368f, 119.31188f, -3.6946249f});
4981
+
4982
+ if (std::string (" ${BACKEND_NAME}" ) == std::string (" IE_GPU" )) {
4983
+ test_case.add_expected_output <float >(Shape{2 , 2 }, {77 .351875f , 74 .047821f , -5 .996780f , 13 .922290f });
4984
+ } else {
4985
+ test_case.add_expected_output <float >(Shape{2 , 2 }, {30 .357481f , 72 .41268f , 12 .999034f , 70 .04985f });
4986
+ }
4987
+
4970
4988
test_case.run ();
4971
4989
}
4972
4990
@@ -4975,7 +4993,13 @@ OPENVINO_TEST(${BACKEND_NAME}, onnx_model_random_normal_like) {
4975
4993
4976
4994
auto test_case = ov::test::TestCase (model, s_device);
4977
4995
test_case.add_input <float >(Shape{2 , 2 }, {0 , 0 , 0 , 0 });
4978
- test_case.add_expected_output<float>(Shape{2, 2}, {83.052017f, 55.496368f, 119.31188f, -3.6946249f});
4996
+
4997
+ if (std::string (" ${BACKEND_NAME}" ) == std::string (" IE_GPU" )) {
4998
+ test_case.add_expected_output <float >(Shape{2 , 2 }, {77 .351875f , 74 .047821f , -5 .996780f , 13 .922290f });
4999
+ } else {
5000
+ test_case.add_expected_output <float >(Shape{2 , 2 }, {30 .357481f , 72 .41268f , 12 .999034f , 70 .04985f });
5001
+ }
5002
+
4979
5003
test_case.run ();
4980
5004
}
4981
5005
0 commit comments