Skip to content

Commit 730f3ae

Browse files
committed
[GPU] Fix tests failures after ASSERT macro fixes
1 parent 98d02d1 commit 730f3ae

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/plugins/intel_gpu/src/graph/primitive_inst.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,10 @@ bool primitive_inst::is_valid_fusion() const {
20172017
if (fd.is_type<eltwise>() || fd.is_type<activation>()) {
20182018
fused_eltwise_prims.push_back(fd);
20192019
} else {
2020-
OPENVINO_THROW("[GPU] Unsupported fused operation in dynamic shape : ", fd.desc->id);
2020+
if (fd.is_type<reorder>())
2021+
continue;
2022+
2023+
OPENVINO_THROW("[GPU] Unsupported fused operation in dynamic shape: type=", fd.desc->type_string(), ", id=", fd.desc->id);
20212024
}
20222025
}
20232026

src/plugins/intel_gpu/tests/unit/test_cases/eltwise_gpu_test.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -3206,7 +3206,7 @@ TEST(eltwise_gpu_f32, broadcast_test_dim3_dim4) {
32063206
// in1:dim3, int2:dim4
32073207
{
32083208
ov::Shape in1_shape = {2, 4, 2};
3209-
3209+
32103210
auto input = engine.allocate_memory({ ov::PartialShape(in1_shape), data_types::f32, format::bfyx });
32113211
set_values(input, const_input);
32123212

@@ -3239,7 +3239,7 @@ TEST(eltwise_gpu_f32, broadcast_test_dim3_dim4) {
32393239
// So explicit 4d input shpae {1, 2, 4, 2} should have same result from input{2, 4, 2}
32403240
{
32413241
ov::Shape in1_shape = {1, 2, 4, 2};
3242-
3242+
32433243
auto input = engine.allocate_memory({ ov::PartialShape(in1_shape), data_types::f32, format::bfyx });
32443244
set_values(input, const_input);
32453245

@@ -4506,9 +4506,9 @@ struct eltwise_layout_test_params {
45064506
};
45074507

45084508
#define CASE_ELTWISE_TEST1 eltwise_mode::sum, {1, 2, 1, 1}, {4, 2, 4, 4}, format::b_fs_yx_fsv16, format::bfyx, "generic_eltwise_ref"
4509-
#define CASE_ELTWISE_TEST2 eltwise_mode::sum, {4, 1, 4, 4}, {1, 5, 1, 1}, format::b_fs_yx_fsv16, format::bfyx, "eltwise_blocked_opt"
4509+
#define CASE_ELTWISE_TEST2 eltwise_mode::sum, {4, 1, 4, 4}, {1, 5, 1, 1}, format::b_fs_yx_fsv16, format::bfyx, "generic_eltwise_ref"
45104510
#define CASE_ELTWISE_TEST3 eltwise_mode::sum, {4, 5, 4, 1}, {4, 1, 4, 1}, format::b_fs_yx_fsv16, format::bfyx, "generic_eltwise_ref"
4511-
#define CASE_ELTWISE_TEST4 eltwise_mode::sum, {4, 2, 4, 4}, {1, 1, 1, 1}, format::b_fs_yx_fsv16, format::bfyx, "eltwise_blocked_opt"
4511+
#define CASE_ELTWISE_TEST4 eltwise_mode::sum, {4, 2, 4, 4}, {1, 1, 1, 1}, format::b_fs_yx_fsv16, format::bfyx, "generic_eltwise_ref"
45124512
#define CASE_ELTWISE_TEST5 eltwise_mode::sum, {1, 2, 1, 1}, {4, 2, 4, 4}, format::bfyx, format::b_fs_yx_fsv16, "generic_eltwise_ref"
45134513
#define CASE_ELTWISE_TEST6 eltwise_mode::sum, {4, 1, 4, 4}, {1, 5, 1, 1}, format::bfyx, format::b_fs_yx_fsv16, "generic_eltwise_ref"
45144514
#define CASE_ELTWISE_TEST7 eltwise_mode::sum, {4, 5, 4, 1}, {4, 1, 4, 1}, format::bfyx, format::b_fs_yx_fsv16, "generic_eltwise_ref"

src/plugins/intel_gpu/tests/unit/test_cases/reshape_gpu_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ void test_calc_output_shape(bool is_caching_test) {
502502

503503
topology topology;
504504
topology.add(input_layout("input", input->get_layout()));
505-
topology.add(reshape("reshape", input_info("input"), tensor(1, 1, 0, -1)));
505+
topology.add(reshape("reshape", input_info("input"), tensor(1, 1, 1, -1)));
506506

507507
set_values(input, {-1.f, 2.f, -3.f, 4.f});
508508

0 commit comments

Comments
 (0)