Skip to content

Commit 2e2ee5b

Browse files
committedJan 22, 2025
Remove use_shape_infer condition in calc_output_layout
1 parent b639368 commit 2e2ee5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/plugins/intel_gpu/src/graph/reshape.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ layout reshape_inst::calc_output_layout(reshape_node const& node, kernel_impl_pa
115115
if (desc->output_shape.count() == 0) {
116116
if (desc->output_partial_shape.size() != 0) {
117117
format out_fmt = format::adjust_to_rank(input_layout.format, desc->output_partial_shape.rank().get_length());
118-
auto use_new_shape_infer = node.get_program().is_new_shape_infer();
119118
auto output_shape = desc->output_partial_shape;
120-
if (!use_new_shape_infer && output_shape.size() < 4)
119+
if (output_shape.size() < 4)
121120
output_shape.insert(output_shape.end(), 4 - output_shape.size(), 1);
122121
return layout{output_shape, input_layout.data_type, out_fmt};
123122
} else {

0 commit comments

Comments
 (0)