-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[microNPU] Add NHWC -> NHCWB16 layout transformation pass #9561
Conversation
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.
Looks really good! :) Very nice test coverage, clear and understandable tests and well done for checking all the various graph types! I noticed that none of the tests has a depthwise_conv2d
in it, so maybe it is worth inserting a depthwise somewhere into the tested graphs as well to make sure no surprises in the depthwise front?
6c9a3d3
to
cf3b8da
Compare
4e8527d
to
3255971
Compare
Adds a layout optimization pass that modifies the ifm/ofm layout of an operation to NHCWB16 where possible. This can occur when the producer or consumer of a tensor is also an NPU operator. Change-Id: I0d6ad1f868dd6f78a236b4bc869e5cbd77c986b0
Change-Id: Iba3436d14a16106a696400c1329dcfa164631dc7
Change-Id: Ibdf1b129e11cb8e09b73cf73817532e6c8e8ee82
Change-Id: Ifc1b4c34cd891fce35d3e043ba81afdd2e34fc4e
Change-Id: I9d586c4931eb3499ed9c6c8555b1ff9c380f402b
3255971
to
ae84980
Compare
Friendly ping for comment/approval :) |
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!
@ekalda ? |
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.
Yep LGTM! Thanks @lhutton1! :)
Adds a layout optimization pass that modifies the ifm/ofm layout of an operation to NHCWB16 where possible. This can occur when the producer or consumer of a tensor is also an NPU operator.
Adds a layout optimization pass that modifies the ifm/ofm layout of an operation to NHCWB16 where possible. This can occur when the producer or consumer of a tensor is also an NPU operator.
Adds a layout optimization pass that modifies the ifm/ofm layout of an operation to NHCWB16 where possible. This can occur when the producer or consumer of a tensor is also an NPU operator.
Adds a layout optimization pass that modifies the ifm/ofm layout of an operation to NHCWB16 where possible. This can occur when the producer or consumer of a tensor is also an NPU operator.
Adds a layout optimization pass that modifies the ifm/ofm layout of an operation to NHCWB16 where possible. This can occur when the producer or consumer of a tensor is also an NPU operator.
Adds a layout optimization pass that modifies the ifm/ofm layout of an operation to NHCWB16 where possible. This can occur when the producer or consumer of a tensor is also an NPU operator.
Note: this PR is dependent on #9560.cc @ekalda @manupa-arm @NicolaLancellotti @dchauhan-arm @mbaret