You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Lunderberg (via GitHub)" <gi...@apache.org> on 2023/08/27 13:36:25 UTC
[GitHub] [tvm] Lunderberg commented on a diff in pull request #15601: [Unity] Add instruments to relay translator
Lunderberg commented on code in PR #15601:
URL: https://github.com/apache/tvm/pull/15601#discussion_r1306667011
##########
python/tvm/relax/testing/relay_translator.py:
##########
@@ -255,6 +261,7 @@ def visit_func(node):
opt_level=opt_level,
config=pass_config,
disabled_pass=disabled_pass,
+ instruments=instruments,
Review Comment:
I like it, though I'm wondering if we should have it forward the instrumentation of the existing `PassContext`, rather than explicitly accept it as an argument. That way, debug instrumentation set by a much higher scope would also be preserved, without requiring an update to the immediately-calling scope.
```python
instruments = tvm.transform.PassCurrent().instruments
```
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org