Skip to content

[microTVM][tvmc] Add TVMC Micro tutorial for Zephyr#10024

Merged
areusch merged 10 commits into
apache:mainfrom
mehrdadh:tvmc_tutorial
Jan 27, 2022
Merged

[microTVM][tvmc] Add TVMC Micro tutorial for Zephyr#10024
areusch merged 10 commits into
apache:mainfrom
mehrdadh:tvmc_tutorial

Conversation

@mehrdadh

Copy link
Copy Markdown
Member

This PR adds a TVMC tutorial for Zephyr platforms using tvmc micro.

@mehrdadh

Copy link
Copy Markdown
Member Author

cc @areusch @gromero

@mehrdadh

Copy link
Copy Markdown
Member Author

cc @hogepodge

@gromero gromero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mehrdadh nice job! Thanks for adding that tutorial. Just some small fixes (see comments inline) and I think it's pretty much ready to land.

The other fixes in tvmc tests autotuning tutorial are good.

Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
@mehrdadh

Copy link
Copy Markdown
Member Author

@gromero thanks for the review! I added your changes, PTAL.

Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
# Run Tiny Model on Micro Target
############################################################
#
# To run the flashed model on the device using TVMC, we use ``tvmc run`` subcommand and we pass ``--device micro``

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you explain what exactly has happened now at this point, and what we mean by "run the flashed model on the device?"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@areusch added more details. Please let me know if I should mention anything else. thanks!

# zephyr \
# --project-option project_type=host_driven zephyr_board=qemu_x86
#
# This will generate a Zephyr project for `qemu_x86` zephyr board. To get more information about

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you explain host_driven here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some details, PTAL. thanks!

@gromero gromero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mehrdadh Thanks for the v2. LGTM.

Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
@hogepodge

Copy link
Copy Markdown
Contributor

Thanks for this, read through it and it looks good to me.

Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated
Comment thread gallery/how_to/work_with_microtvm/micro_tvmc.py Outdated

@areusch areusch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@areusch areusch merged commit f93f2a6 into apache:main Jan 27, 2022
@mehrdadh mehrdadh deleted the tvmc_tutorial branch January 27, 2022 17:13
sunggg pushed a commit to sunggg/tvm that referenced this pull request Jan 29, 2022
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
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.

5 participants