-
Notifications
You must be signed in to change notification settings - Fork 32
[NetworkDeployer] Node Mangling to avoid duplication #93
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
Conversation
|
Also, please do not forget to adjust the CHANGELOG ;) (This is also a note to me) |
|
@viv-eth Any plans to work on this in the next 2 weeks? Alternatively, I can offer to take it over, but will most likely include it in the next release. |
6a33901 to
fffe9c7
Compare
Xeratec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase the PR and make sure to extend the CHANGELOG in the right place. Otherwise, the changes are good. Thanks a lot!
fffe9c7 to
e0828c4
Compare
e0828c4 to
4e903b4
Compare
Xeratec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes were added under v0.2.0 and not under v0.2.1. I did change it and merge once the tests succeed.
* [NetworkDeployer] Mangle these n...odes * [DeeployTypes] Only mangle on duplicates * Update changelog --------- Co-authored-by: viv-eth <[email protected]>
* [NetworkDeployer] Mangle these n...odes * [DeeployTypes] Only mangle on duplicates * Update changelog --------- Co-authored-by: viv-eth <[email protected]>
This patch introduces a node‐name mangling pass in the Deploy front end to ensure every node in the graph has a unique, non‐empty name. Previously, nodes generated by
GraphSurgeonwithout an explicit name would collide, causing later layers to overwrite earlier layer bindings. With this change, each node is automatically assigned a name based on its operation and an incrementing counter, guaranteeing uniqueness and preserving all layer bindings.Added
DeployTypes._mangleNodeNames(self)helper that:"{op_name}_{idx}", using the op’s class or string reprself._mangleNodeNames()infrontEnd()immediately after tensor‐name manglingChanged
DeployTypes.frontEnd()to call_mangleNodeNames()before renaming graph inputs/outputsFixed
"", so no two nodes share the same namePR Merge Checklist
develcommit and pointing todevel.CHANGELOG.mdfile has been updated.