Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU] enable dynamic shape conv on compile graph pass (#30944)

Sungeun Kim8e4cc9eb2e55
diff --git a/src/plugins/intel_gpu/src/graph/registry/convolution_impls.cpp b/src/plugins/intel_gpu/src/graph/registry/convolution_impls.cpp
index 319bb8d1f76..8d4cbc984fa 100644
--- a/src/plugins/intel_gpu/src/graph/registry/convolution_impls.cpp
+++ b/src/plugins/intel_gpu/src/graph/registry/convolution_impls.cpp
@@ -23,9 +23,7 @@ const std::vector<std::shared_ptr<cldnn::ImplementationManager>>& Registry<convo
OV_GPU_CREATE_INSTANCE_OCL(ocl::ConvolutionImplementationManager, shape_types::static_shape)
OV_GPU_CREATE_INSTANCE_OCL(ocl::ConvolutionImplementationManager, shape_types::dynamic_shape,
[](const cldnn::program_node& node){
- if (node.can_use(impl_types::onednn))
- return false;
- return node.as<convolution>().use_explicit_padding();
+ return !node.can_use(impl_types::onednn);
})
};