Skip to content

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

[GPU] Relaxed condition to select strided_slice impl with gpu (#25985)

Taylor Yeonbok Leec6ab24a6d7f3
diff --git a/src/plugins/intel_gpu/src/graph/graph_optimizer/mark_shape_of_subgraphs.cpp b/src/plugins/intel_gpu/src/graph/graph_optimizer/mark_shape_of_subgraphs.cpp
index 3599e68301d..cf0b733b6ef 100644
--- a/src/plugins/intel_gpu/src/graph/graph_optimizer/mark_shape_of_subgraphs.cpp
+++ b/src/plugins/intel_gpu/src/graph/graph_optimizer/mark_shape_of_subgraphs.cpp
@@ -82,7 +82,7 @@ bool mark_shape_of_subgraphs::can_mark_node(const program_node& node) {
// Exclude stride_slice primitive if it's input is big const ternsor, else CPU reference implementation
// will lead to huge performance drop.
if (node.is_type<strided_slice>() && node.get_dependency(0).is_constant() &&
- node.get_dependency(0).get_output_layout().count() > 1024 * 1024) {
+ node.get_dependency(0).get_output_layout().count() > 128 * 1024) {
return false;
}