-
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] Refactor base address determination to codegen #9929
Conversation
cc : @grant-arm @Mousius @ekalda @mbaret |
e36f4bf
to
48a7911
Compare
a friendly ping for reviews! TIA. |
python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py
Outdated
Show resolved
Hide resolved
python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py
Outdated
Show resolved
Hide resolved
python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py
Outdated
Show resolved
Hide resolved
python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py
Outdated
Show resolved
Hide resolved
Thanks @mbaret for the quick review! and I believe I've addressed the comments. |
a friendly ping for @grant-arm @Mousius |
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 looks good to me @manupa-arm, I'd be cautious of over-using utils
as a general place to put things though as it's unclear where the functional boundary is. I'd suggest renaming it to objects.cc
which is one step less vague, or splitting it further in future.
Thanks for this @manupa-arm , it looks good to me. |
8a71a57
to
378cbc1
Compare
4e60749
to
bab07be
Compare
This commit introduces BaseAddress ObjectRef to determine base addresses in the codegen for microNPU. This is required when multiple memory pools become available. Thus, base addresses could not be statically determined in the source module. Change-Id: I6cfa578af0318bbe07d3bb9415df7bdd839611d3
* Renaming runtime_allocate to be scratch again. * Docstring adjustments. Change-Id: Ife8baf97f3dc9348718bd03e62549169a466fc34
bab07be
to
01b1307
Compare
@Mousius that make sense. lets rename it to be objects in a follow up. This passed CI :) finally. Can we take this in ? |
This commit introduces BaseAddress ObjectRef to determine base addresses in the codegen for microNPU. This is required when multiple memory pools become available. Thus, base addresses could not be statically determined in the source module.
This commit introduces BaseAddress ObjectRef to determine base addresses in the codegen for microNPU. This is required when multiple memory pools become available. Thus, base addresses could not be statically determined in the source module.
This commit introduces BaseAddress ObjectRef to determine
base addresses in the codegen for microNPU. This is
required when multiple memory pools become available. Thus,
base addresses could not be statically determined in the
source module.