-
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
[3/10] Moved TIR generation from Python to C++ for CMSIS-NN #8951
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.
This approach feels a lot cleaner overall @ashutosh-arm, could you update the PR title to 2a
? 😸
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 for the PR! I did a pass, see if you agree.
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 for the quick reviews @Mousius and @manupa-arm .
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.
Another round of comments! :)
Sorry for doing this piecemeal.
e2647a4
to
92d77a8
Compare
Change-Id: I2cdcd7a90aa4749877c48bc6c7c4d27328856860
Change-Id: Ie41b695fa06468cd3b0bfe428c360e98438a9180
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.
One minor point but happy to see it in the 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.
thanks @ashutosh-arm for the PR, just a couple questions
|
||
Map<String, ObjectRef> dict_attrs; | ||
dict_attrs.Set("global_symbol", func_name_); | ||
dict_attrs.Set("tir.noalias", Bool(true)); |
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 thiiink this is a no-op on c
target, but can you explain what you're going for here?
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.
What is tir.noalias used for? I am not sure. It is being used everywhere in the tests, so I thought it must be something that is being used in TIR passes.
Hi @areusch, I acknowledge your questions but do we need to block the PR on them rather than moving forwards with the integration? I'm sure @ashutosh-arm will honourably follow up in a future PR in this series. |
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.
@Mousius @ashutosh-arm ok given this is part of a larger set of PRs belonging to an RFC in-flight, let us merge this and add a follow-up.
* main: [3/10] Moved TIR generation from Python to C++ for CMSIS-NN (apache#8951) Support match pvar with dtype constraint (apache#9016)
This PR moves changes from Python to C++ for Softmax via CMSIS-NN. This is a follow up PR to #8833.
It is step 2a in #8646.