-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[microNPU] Re-enable LayoutOptimizer pass #9793
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
It looks like in apache#9597 the LayoutOptimizer pass was accidentally removed. Probably due to a race condition in PR's. Re-enabling this feature. Change-Id: I4fc16a440f90277c5fcd887715166332af052c6b
ekalda
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.
I wonder if it would make sense to run the LUT pass before the layout optimization pass since the LUT pass removes some of the identity operators (which the layout pass currently skips IIRC), so in that case we could transform more layouts between transformation-eligible operators?
|
Yes I think that would make more sense! |
Change-Id: I6e7a22f46660029bbf4be3deb2be929cecf5d365
ekalda
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.
Well done for spotting that bug/git fail, LGTM! Fingers crossed all the tests pass when both of these passes are enabled 😅
|
Oops.... I also think we need to have at least a single integration test that requires the this pass being run -- maybe in a follow up? |
manupak
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.
LGTM!
|
Thanks all! Lets add a test to make sure it doesn't get removed silently... |
|
Yes that's sensible, will do! |
…line Follow up to apache#9793. In checking this it was found that both the layout and LUT optimizer passes were silently not running. This is fixed by converting each pass to a module pass, rather than a function pass. Tests have been added to prevent this happening in the future. Change-Id: I5145c6f02eeb0daea3cdba56198e0804ec32f351
* [microNPU] Re-enable LayoutOptimizer pass It looks like in apache#9597 the LayoutOptimizer pass was accidentally removed. Probably due to a race condition in PR's. Re-enabling this feature. Change-Id: I4fc16a440f90277c5fcd887715166332af052c6b * change pass ordering Change-Id: I6e7a22f46660029bbf4be3deb2be929cecf5d365 Co-authored-by: lukhut01 (generated by with_the_same_user script) <lukhut01@e127400.cambridge.arm.com>
* [microNPU] Re-enable LayoutOptimizer pass It looks like in apache#9597 the LayoutOptimizer pass was accidentally removed. Probably due to a race condition in PR's. Re-enabling this feature. Change-Id: I4fc16a440f90277c5fcd887715166332af052c6b * change pass ordering Change-Id: I6e7a22f46660029bbf4be3deb2be929cecf5d365 Co-authored-by: lukhut01 (generated by with_the_same_user script) <lukhut01@e127400.cambridge.arm.com>
It looks like the LayoutOptimizer pass was accidentally removed. Probably due to a race condition when merging PR's. Re-enabling this feature.
cc @ekalda @manupa-arm @mbaret