Skip to content

[GPU] Enable Strided Slice optimization #30695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dnkurek
Copy link
Contributor

@dnkurek dnkurek commented May 23, 2025

Details:

  • Optimizes Microsoft Phi model by reducing split ops

Tickets:

  • 168056

@dnkurek dnkurek requested review from a team as code owners May 23, 2025 11:00
@github-actions github-actions bot added the category: GPU OpenVINO GPU plugin label May 23, 2025
@@ -354,6 +355,8 @@ void TransformationsPipeline::apply(std::shared_ptr<ov::Model> func) {
auto pass_config = manager.get_pass_config();
manager.set_per_pass_validation(false);

manager.register_pass<ov::pass::StridedSliceOptimization>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github is not allowing me to comment on line 1186 but should we get rid of ConvertStridedSlicesToVariadicSplit?

@dnkurek dnkurek marked this pull request as draft May 23, 2025 11:11
@@ -469,6 +470,7 @@ void TransformationsPipeline::apply(std::shared_ptr<ov::Model> func) {
convert_input_output_precision,
store_original_precision_as_rt_attribute);

manager.register_pass<ov::pass::StridedSliceOptimization>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to go before CommonOptimizations because it does SliceToStridedSlice and breaks the optimization GroupedSliceToVSplitOptimization

@dnkurek dnkurek marked this pull request as ready for review May 23, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: GPU OpenVINO GPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant