Skip to content
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

[CPU] SnS transform ambiguous convert #27948

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chenhu-wang
Copy link
Contributor

@chenhu-wang chenhu-wang commented Dec 6, 2024

Details:

  • ov::op::v0::Convert could be inserted in data_flow, such as ConstantFolding pass. Need mark clear modes for it to emit

Tickets:

@chenhu-wang chenhu-wang force-pushed the chenhu/convert_need_mark_explicite_modes_in_snippets branch from d3df44f to 158d71f Compare December 6, 2024 07:13
@@ -428,6 +429,7 @@ void Subgraph::data_flow_transformations(const BlockedShapeVector& blocked_input
manager.register_pass<snippets::pass::ConvertConstantsToScalars>();

manager.register_positioned_passes(backend_passes);
manager.register_pass<snippets::pass::TransformConvertToConvertTruncation>();
Copy link
Contributor

@a-sidorova a-sidorova Dec 9, 2024

Choose a reason for hiding this comment

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

We call this transformation in CommonOptimizations after subgraph tokenization to mark all original Convert ops as ConvertTruncation.

Then all other transformations which inserts Convert op (such as FQDecomposition or PropagatePrecision), should always insert utility ConvertSaturation op.

Did you find the pass after TransformConvertToConvertTruncation registration in CommonOptimizations which inserts clear Convert op (not from Snippets dialect)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't reproduce the issue locally. I checked the passes after ConvertTruncation in commonOptimization. Only found an potential possible convert in ConstantFolding, but not very sure. So I need more detailed info from the issue reporter:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: CPU OpenVINO CPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants