-
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 transform matrices and part matcher to identity op #11453
Conversation
1c56d16
to
0270967
Compare
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.
Thanks @NicolaLancellotti, looks good in general! Just some comments about mapping 3D tensors to NHWC.
(I don't know why it displays each comment twice 😅 ) |
0270967
to
b94afca
Compare
No, problem. Thanks, @ekalda for the review. |
Hi @NicolaLancellotti , It would be great to rebase this PR on top of https://github.com/apache/tvm/pull/11410/files and see if the unit tests that I have disabled in that PR works -- so we can have higher confidence about the changes in this PR. |
b94afca
to
30c69d1
Compare
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.
Looking forward to the rebase :) just a couple of small things that might be worth including?
|
||
subkernels = len(device_config.get_kernel_steps(identity.op.name, 1, 1, ifm_dtype)) | ||
|
||
input_layout = output_layout = "NHWC" |
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.
Perhaps we should assert that len(input_tensors_shape) <= 4
if we don't support brick layout for identity
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.
Done.
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.
Ah, apologies, I should have said that a message would have been helpful alongside the assert as well. Lets take it in a follow up :)
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!
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!
|
||
subkernels = len(device_config.get_kernel_steps(identity.op.name, 1, 1, ifm_dtype)) | ||
|
||
input_layout = output_layout = "NHWC" |
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.
Ah, apologies, I should have said that a message would have been helpful alongside the assert as well. Lets take it in a follow up :)
Thanks @NicolaLancellotti, @ekalda, @manupa-arm! |
This commit adds support for the identity operator in the cascader.
@manupa-arm @ekalda @lhutton1
cc @Mousius