Skip to content
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

Merged
merged 6 commits into from Jan 26, 2022

Conversation

mehrdadh
Copy link
Member

@mehrdadh mehrdadh commented Jan 20, 2022

This PR changes micro_tflite.py to enable testing this tutorial on physical hardware.

@mehrdadh mehrdadh requested a review from a team as a code owner January 20, 2022 01:30
@github-actions github-actions bot removed the request for review from a team January 21, 2022 00:32
@mehrdadh
Copy link
Member Author

cc @areusch @gromero

Copy link
Contributor

@gromero gromero left a 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!

gallery/how_to/work_with_microtvm/micro_tflite.py Outdated Show resolved Hide resolved
boards = json.load(f)

BOARD = os.getenv("TVM_MICRO_BOARD", default="nucleo_f746zg")
TARGET = tvm.target.target.micro(boards[BOARD]["model"])
Copy link
Contributor

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?

Copy link
Member Author

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!

Copy link
Contributor

@gromero gromero left a 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.

@masahi masahi merged commit 884fee4 into apache:main Jan 26, 2022
@mehrdadh mehrdadh deleted the tflite_tutorial_to_nightly branch January 26, 2022 16:22
sunggg pushed a commit to sunggg/tvm that referenced this pull request Jan 29, 2022
…ardware (apache#9993)

* Add env variable to micro tflite tutorial

* Address @gromero comments

* address @areusch comment

* fix scope

* trigger

* trigger
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
…ardware (apache#9993)

* Add env variable to micro tflite tutorial

* Address @gromero comments

* address @areusch comment

* fix scope

* trigger

* trigger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants