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] AOT Demo #8075

Merged
merged 20 commits into from
May 28, 2021
Merged

[microTVM] AOT Demo #8075

merged 20 commits into from
May 28, 2021

Conversation

mehrdadh
Copy link
Member

@mehrdadh mehrdadh commented May 19, 2021

This PR makes these changes:

  • adds AOT demo for microtvm
  • adds AOT zephyr test to ci_qemu
  • adds image classification tflite model for aot zephyr test.

@mehrdadh
Copy link
Member Author

cc @areusch @gromero

@mehrdadh mehrdadh force-pushed the aot_zephyr branch 2 times, most recently from 15b61d2 to a397a6b Compare May 19, 2021 06:23
Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

just one minor question so far

@mehrdadh
Copy link
Member Author

@areusch tested this on NRF board, however, the model doesn't fit on Nucleo board. So I removed the boards that has not been tested so far in the aot_demo.
PTAL.
Thanks!

Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

thanks @mehrdadh , did a pass

apps/microtvm/zephyr/aot_demo/src/main.c Show resolved Hide resolved
apps/microtvm/zephyr/host_driven_demo/CMakeLists.txt Outdated Show resolved Hide resolved
python/tvm/micro/build.py Outdated Show resolved Hide resolved
lowered = relay.build(relay_mod, target, params=params)

# Load sample and generate input/output header files
sample = np.load(os.path.join(this_dir, "testdata", "ic_sample_fp32_8.npy"))
Copy link
Contributor

Choose a reason for hiding this comment

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

311KB is quite a bit for this repo...i'm not sure whether we should load from a different place?

Copy link
Member Author

Choose a reason for hiding this comment

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

replaced it with this link to its source:
image classification model

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks, also possible to do so for this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

For the sample data I need to use a sample that has predictable result to test in the CI. I got this sample from a large dataset and need to keep it somewhere. The other option is to create a personal repository and add it there. We could reuse that repo later for other other samples as well. Let me know what you think.
Also I can save this numpy array as int8 and reduce the size 4 times if that works.

Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

thanks @mehrdadh !

@areusch areusch merged commit dad59be into apache:main May 28, 2021
@mehrdadh mehrdadh deleted the aot_zephyr branch June 10, 2021 19:51
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 17, 2021
* initial

* remove compare

* temp fix

* debugging

* hack

* hack for testing

* both test pass

* cleanup

* fix tests and tutorials

* restructure

* cleanup

* cleanup

* fix check files

* fixed for physical devices

* address comments

* reduce nrf stack size

* update sample url

* format
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jun 17, 2021
* initial

* remove compare

* temp fix

* debugging

* hack

* hack for testing

* both test pass

* cleanup

* fix tests and tutorials

* restructure

* cleanup

* cleanup

* fix check files

* fixed for physical devices

* address comments

* reduce nrf stack size

* update sample url

* format
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.

2 participants