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

Fixed duplicate names appearance in graph after fuse mul transformation. #5842

Merged

Conversation

popovaan
Copy link
Contributor

Root cause analysis:
_fuse_add transformation finds MatMul node and a Mul node that goes after it, than removes Mul node and inserts a new Mul node before the MatMul using set_source() method. set_source() copies attributes from the data node of old connection to the new data node and it leads to appearance of two data nodes with the same name.

After the constant folding and graph cleanup the operation that goes to the new data node is deleted as const producer and the new Const op is created with the name obtained from data node which leads to the error, that graph contains two nodes with the same name.

Solution:
Manually set unique name to the new data node.

Ticket: 54845

Code:

  • Comments
  • Code style (PEP8)
  • Transformation generates reshape-able IR
  • Transformation preserves original framework node names

Validation:

  • Unit tests
  • Framework operation tests - N/A
  • Transformation tests - N/A
  • Model Optimizer IR Reader check

Documentation:

  • Supported frameworks operations list - N/A
  • Guide on how to convert the public model - N/A
  • User guide update - N/A

@popovaan popovaan marked this pull request as ready for review May 27, 2021 08:22
@popovaan popovaan requested review from a team, jane-intel, lazarevevgeny, pavel-esir and iimironov and removed request for a team May 27, 2021 08:22
@popovaan popovaan requested a review from lazarevevgeny May 27, 2021 13:25
@lazarevevgeny lazarevevgeny merged commit b1e7a5c into openvinotoolkit:master May 28, 2021
yekruglov pushed a commit to yekruglov/openvino that referenced this pull request Jun 7, 2021
…on. (openvinotoolkit#5842)

* Added manual set of unique name to the data node.

* Added attributes checks in unit test.

* Removed redundant line break.
@popovaan popovaan added category: MO Model Optimizer bug Something isn't working labels Jun 8, 2021
rnugmanx pushed a commit to rnugmanx/openvino that referenced this pull request Aug 26, 2021
…on. (openvinotoolkit#5842)

* Added manual set of unique name to the data node.

* Added attributes checks in unit test.

* Removed redundant line break.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working category: MO Model Optimizer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants