-
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
[microTVM][tutorial] Add ENV variable to enable testing on physical hardware #9993
Conversation
b12b480
to
68ac9e3
Compare
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.
Hi @mehrdadh. Thanks for the change. That's quite helpful indeed (not only for the nightly build :) ).
I've just would prefer to not construct and use the list comprehension and maybe use default
for os.getenv()
(please see the comment inline). Otherwise LGTM!
boards = json.load(f) | ||
|
||
BOARD = os.getenv("TVM_MICRO_BOARD", default="nucleo_f746zg") | ||
TARGET = tvm.target.target.micro(boards[BOARD]["model"]) |
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.
@mehrdadh This is now out of use_physical_hw
scope, so it will overwrite the previous TARGET
value. Is that intentional?
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.
nope, that was incorrect. fixed it.
Thanks!
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.
@mehrdadh Thanks for the v4. LGTM.
…ardware (apache#9993) * Add env variable to micro tflite tutorial * Address @gromero comments * address @areusch comment * fix scope * trigger * trigger
…ardware (apache#9993) * Add env variable to micro tflite tutorial * Address @gromero comments * address @areusch comment * fix scope * trigger * trigger
This PR changes micro_tflite.py to enable testing this tutorial on physical hardware.