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

[microNPU] Refactor type inference data type checks #10060

Merged
merged 3 commits into from
Feb 9, 2022

Conversation

lhutton1
Copy link
Contributor

Aims to improve readability, extensibility and error message unification for data type checks across NPU operators.

A follow up for the comments in #9576.

cc @ekalda @manupa-arm @NicolaLancellotti @mbaret @dchauhan-arm @jacobbohlin

src/relay/op/contrib/ethosu/common.cc Outdated Show resolved Hide resolved
src/relay/op/contrib/ethosu/common.cc Outdated Show resolved Hide resolved
src/relay/op/contrib/ethosu/common.cc Outdated Show resolved Hide resolved
@NicolaLancellotti
Copy link
Contributor

Other than the previous comments, LGTM! Thanks, @lhutton1

Aims to improve readability, extendibility and error message
unification for data type checks across NPU operators.

A follow up for the comments in apache#9576.

Change-Id: I83fb89a56677003f7abebb7985ad60d92cfa8df1
Change-Id: Icf3d68d5cc7d5e1d5af42b1af193db89faea155e
@lhutton1 lhutton1 force-pushed the refactor-infer-dtype-checks branch from 752a4c0 to 3536c4e Compare February 7, 2022 12:35
Change-Id: I10311b718c3abd0ed75dd88b5ec9de6e0742f047
@lhutton1 lhutton1 force-pushed the refactor-infer-dtype-checks branch from f80bc3f to 86ac9c0 Compare February 8, 2022 10:40
Copy link
Contributor

@manupak manupak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!.

@NicolaLancellotti can you take another look ?

Copy link
Contributor

@NicolaLancellotti NicolaLancellotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@manupak manupak merged commit 86e1e56 into apache:main Feb 9, 2022
@manupak
Copy link
Contributor

manupak commented Feb 9, 2022

Thanks! @lhutton1 @NicolaLancellotti. This is merged now!

@lhutton1 lhutton1 deleted the refactor-infer-dtype-checks branch February 15, 2022 15:32
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
* [microNPU] Refactor type inference data type checks

Aims to improve readability, extendibility and error message
unification for data type checks across NPU operators.

A follow up for the comments in apache#9576.

Change-Id: I83fb89a56677003f7abebb7985ad60d92cfa8df1

* unordered_set -> initializer_list and use new format for upscale check

Change-Id: Icf3d68d5cc7d5e1d5af42b1af193db89faea155e

* remove unused header and use auto for initializer type

Change-Id: I10311b718c3abd0ed75dd88b5ec9de6e0742f047
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants