manupa-arm commented on a change in pull request #10022:
URL: https://github.com/apache/tvm/pull/10022#discussion_r809066670
##########
File path: python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py
##########
@@ -106,21 +202,31 @@ def translate(tir_module, params):
base addresses to be used by the driver
"""
+ # The NPU has 6 usable regions ranging from 0-6
+ # The regions 0, 3, and 4 is already used for input,
+ # output and constant, respectively (See _get_regions()).
+ # Thus, for scratch we are left with 5, 2 and 1.
+ candidate_regions_for_scratch = [5, 2, 1]
+ (
+ scratch_region_map,
+ tvmbaw_workspace_size,
+ tvmbaw_region,
Review comment:
happy to align with the name we end up deciding above...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]