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

Fix pass to remove ShapeOf subgraph #2820

Conversation

andrey-churkin
Copy link
Contributor

@andrey-churkin andrey-churkin commented Jul 17, 2024

Changes

It is possible to remove a node in the Shape Of subgraph only if all output edges have an integer dtype. An additional condition has been added to check for this.

Reason for changes

In the picture below, integer edges are colored blue, and float edges are colored black. Nodes with a red border are removed during the ShapeOf removal pass, but they shouldn't be.

shapeof_pass

Related tickets

Ref: 146088

Tests

TODO

@andrey-churkin andrey-churkin requested a review from a team as a code owner July 17, 2024 08:47
@andrey-churkin andrey-churkin marked this pull request as draft July 17, 2024 08:47
@github-actions github-actions bot added the NNCF PTQ Pull requests that updates NNCF PTQ label Jul 17, 2024
@andrey-churkin andrey-churkin marked this pull request as ready for review July 22, 2024 08:29
@github-actions github-actions bot added NNCF PT Pull requests that updates NNCF PyTorch NNCF OpenVINO Pull requests that updates NNCF OpenVINO NNCF ONNX Pull requests that updates NNCF ONNX labels Aug 16, 2024
@andrey-churkin
Copy link
Contributor Author

Implemented here #2902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NNCF ONNX Pull requests that updates NNCF ONNX NNCF OpenVINO Pull requests that updates NNCF OpenVINO NNCF PT Pull requests that updates NNCF PyTorch NNCF PTQ Pull requests that updates NNCF PTQ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant