Skip to content

Commit

Permalink
[GPU] Enable fusing dynamic eltwise with gemm in onednn case (openvin…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyamin-Roman authored Oct 24, 2024
1 parent f9406ad commit c202882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,8 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
auto eltw_in_size = peer_node->get_output_layout();
if (eltw_in_size.is_dynamic()
// this whitelist condition is temporarily and to be relaxed soon.
&& !fused_node->is_type<fully_connected>())
&& !fused_node->is_type<fully_connected>()
&& !fused_node->is_type<gemm>())
return;
}
if (parent1.first->is_type<convolution>() && !conv_supports_fusings(parent1.first->as<convolution>()))
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/intel_gpu/tests/unit/fusions/gemm_fusion_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,6 @@ class gemm_2in_dynamic_add : public gemm_2in_add {};
TEST_P(gemm_2in_dynamic_add, add) {
auto p = GetParam();

if (engine.get_device_info().supports_immad)
p.expected_fused_primitives++;

cfg_fused.set_property(ov::intel_gpu::allow_new_shape_infer(true));
cfg_not_fused.set_property(ov::intel_gpu::allow_new_shape_infer(true));

Expand Down

0 comments on commit c202882

Please sign in to comment.