Skip to content

Commit 75217ac

Browse files
Add use_new_shape_infoer condition instead of ouDim size
1 parent 155d849 commit 75217ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/intel_gpu/src/plugin/ops/convolution.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void CreateConvolutionOp(ProgramBuilder& p, const std::shared_ptr<ov::int
4444
auto pads_end = op->get_pads_end();
4545
auto auto_pad = op->get_auto_pad();
4646

47-
if (!op->is_dynamic() && outDims.size() >= 4) {
47+
if (!op->is_dynamic() && !p.use_new_shape_infer()) {
4848
// Extend 1d vectors to 2d as 1d can't be handled properly by the graph optimizer for now
4949
strides.resize(std::max<size_t>(2, strides.size()), 1);
5050
dilations.resize(std::max<size_t>(2, strides.size()), 1);

0 commit comments

Comments
 (0)