Skip to content

Commit a200f8c

Browse files
committed
[GPU] Fix comment for prelu fusing
Signed-off-by: Min, Byungil <byungil.min@intel.com>
1 parent e1ecf28 commit a200f8c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/plugins/intel_gpu/src/graph/graph_optimizer/prepare_primitive_fusing.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ void prepare_primitive_fusing::fuse_bias(program &p) {
371371
if (replace_candidate.is_type<convolution>()) {
372372
auto& conv = replace_candidate.as<convolution>();
373373
auto desc = conv.get_primitive();
374-
// XXX: deformable convolution does not support bias fusing at this moment. It is just not tested and deformable_mode value is not properly handled below.
374+
// XXX: deformable convolution does not support bias fusing at this moment.
375+
// It is just not tested and deformable_mode value is not properly handled below.
375376
if (desc->deformable_mode)
376377
continue;
377378
primitive_id biases = bias_name;
@@ -746,8 +747,9 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
746747
return;
747748
}
748749

749-
if (activation_func == cldnn::activation_func::relu_negative_slope &&
750-
input.get_output_layout().batch() > 1 && input.is_type<convolution>()) {
750+
auto input_layout = input.get_output_layout();
751+
if (input.is_type<convolution>() && activation_func == cldnn::activation_func::relu_negative_slope &&
752+
input_layout.is_static() && input_layout.batch() > 1) {
751753
return;
752754
}
753755

0 commit comments

Comments
 (0)