-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Clean up uTVM demo runtime, add ONNX model test and tutorial #7557
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
Merged
Merged
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
6a38dc9
Some docstring fixes.
mdw-octoml 82cee46
Couple of small fixes:
mdw-octoml 545a241
Adding Zephyr demo runtime.
mdw-octoml c611d30
Cleanup of uTVM tests and demo runtime.
mdw-octoml 28b92de
Working on QEMU support.
mdw-octoml 123c64c
Adding board-specific prj.conf files.
mdw-octoml bc87450
Some cleanup.
mdw-octoml 98f3475
Lots of hacking to get ONNX model to run on QEMU and nRF5340.
mdw-octoml a9ffc96
Adding data for unit tests.
mdw-octoml d249161
Cleanup demo_runtime code.
mdw-octoml d04e04d
Fix up tutorial.
mdw-octoml 7a38c7f
Couple of small fixes:
mdw-octoml 443a429
Adding Zephyr demo runtime.
mdw-octoml 280479a
Cleanup of uTVM tests and demo runtime.
mdw-octoml b62ab38
Working on QEMU support.
mdw-octoml 853f01e
Adding board-specific prj.conf files.
mdw-octoml 4b1da9a
Some cleanup.
mdw-octoml 058985b
Lots of hacking to get ONNX model to run on QEMU and nRF5340.
mdw-octoml fe2c9a1
Lots of hacking to get ONNX model to run on QEMU and nRF5340.
mdw-octoml 763017e
Adding data for unit tests.
mdw-octoml df722b8
Cleanup demo_runtime code.
mdw-octoml 6645f50
Fix up tutorial.
mdw-octoml b6ae7cf
Fix tutorial.
mdw-octoml 8934c19
Fix tutorial and runtime.
mdw-octoml ec5b004
Merge branch 'mdw/demo-runtime' of github.com:mdw-octoml/tvm into mdw…
mdw-octoml fbdc1cb
Fix merge conflicts.
mdw-octoml ec2c374
Fix merge conflict.
mdw-octoml 2b14aa1
Remove redundant files.
mdw-octoml 0db2207
Revert dep.
mdw-octoml 687c09c
Fixup
mdw-octoml bcce620
Add new files to check_file_type.py.
mdw-octoml f1260df
Adding missing ONNX file.
mdw-octoml 599c5fb
Fixup docs.
mdw-octoml c552fa9
Fix linting rule.
mdw-octoml 3271923
small fixes
mehrdadh 0bb5d85
Merge remote-tracking branch 'upstream/main' into mdw/demo-runtime
mdw-octoml f672577
Add missing file to check_file_type.py.
mdw-octoml 12cdd03
clang-format this file.
mdw-octoml a87f3e8
Fix formatting.
mdw-octoml f2b665b
Black formatting.
mdw-octoml 65f0b4e
Lint comments.
mdw-octoml 37e0bce
Fix path for test.
mdw-octoml a26234a
Bump CI.
mdw-octoml 28b6776
Merge remote-tracking branch 'upstream/main' into mdw/demo-runtime
mdw-octoml 4749de5
Update from_onnx.
mdw-octoml 024518f
fix path
65385a5
Merge remote-tracking branch 'upstream/main' into mdw/demo-runtime
mdw-octoml 72a2099
Fixing
mdw-octoml 01242ca
Merge branch 'main' into mdw/demo-runtime
mdw-octoml 76808c8
Revert dmlc-core to 21cc7de0dc9fd6acb796e1be6181fa8e6b6c8f41
mdw-octoml b6efa06
Fix path again.
mdw-octoml d9db2ad
Fix tutorial to not use actual Zephyr.
mdw-octoml 2615711
Revert submodule version change
mdw-octoml 9c9b314
Merge remote-tracking branch 'upstream/main' into mdw/demo-runtime
mdw-octoml f412ffd
Fix bad merge.
mdw-octoml 22e484d
Trying to fix this mess.
mdw-octoml ac60a05
Fix formatting.
mdw-octoml 4a7719d
context -> device
mdw-octoml c303c91
Removing tutorial since I can't get it to pass CI.
mdw-octoml File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <!--- Licensed to the Apache Software Foundation (ASF) under one --> | ||
| <!--- or more contributor license agreements. See the NOTICE file --> | ||
| <!--- distributed with this work for additional information --> | ||
| <!--- regarding copyright ownership. The ASF licenses this file --> | ||
| <!--- to you under the Apache License, Version 2.0 (the --> | ||
| <!--- "License"); you may not use this file except in compliance --> | ||
| <!--- with the License. You may obtain a copy of the License at --> | ||
|
|
||
| <!--- http://www.apache.org/licenses/LICENSE-2.0 --> | ||
|
|
||
| <!--- Unless required by applicable law or agreed to in writing, --> | ||
| <!--- software distributed under the License is distributed on an --> | ||
| <!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --> | ||
| <!--- KIND, either express or implied. See the License for the --> | ||
| <!--- specific language governing permissions and limitations --> | ||
| <!--- under the License. --> | ||
|
|
||
| This directory code to interface microTVM with the [Zephyr RTOS](https://zephyrproject.org/). | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <!--- Licensed to the Apache Software Foundation (ASF) under one --> | ||
| <!--- or more contributor license agreements. See the NOTICE file --> | ||
| <!--- distributed with this work for additional information --> | ||
| <!--- regarding copyright ownership. The ASF licenses this file --> | ||
| <!--- to you under the Apache License, Version 2.0 (the --> | ||
| <!--- "License"); you may not use this file except in compliance --> | ||
| <!--- with the License. You may obtain a copy of the License at --> | ||
|
|
||
| <!--- http://www.apache.org/licenses/LICENSE-2.0 --> | ||
|
|
||
| <!--- Unless required by applicable law or agreed to in writing, --> | ||
| <!--- software distributed under the License is distributed on an --> | ||
| <!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --> | ||
| <!--- KIND, either express or implied. See the License for the --> | ||
| <!--- specific language governing permissions and limitations --> | ||
| <!--- under the License. --> | ||
|
|
||
| This directory contains a Zephyr-based "demo" runtime environment that | ||
| pulls together the microTVM runtime dependencies into a single application | ||
| that can communicate with a Python-based host program via the UART, using | ||
| TVM's RPC protocol. |
31 changes: 31 additions & 0 deletions
31
apps/microtvm/zephyr/demo_runtime/boards/nrf5340dk_nrf5340_cpuapp.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
| # This file is specific to the nRF5340 DK board. | ||
|
|
||
| # For intrinsics used by generated optimized operators. | ||
| CONFIG_CMSIS_DSP=y | ||
|
|
||
| # Required for Cortex-M33 devices. | ||
| CONFIG_MAIN_STACK_SIZE=1536 | ||
|
|
||
| # For random number generation. | ||
| CONFIG_ENTROPY_GENERATOR=y | ||
| CONFIG_TEST_RANDOM_GENERATOR=y | ||
|
|
||
| # For debugging. | ||
| CONFIG_LED=y |
30 changes: 30 additions & 0 deletions
30
apps/microtvm/zephyr/demo_runtime/boards/nucleo_f746zg.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
| # This file is specific to the nRF5340 DK board. | ||
|
|
||
| # For intrinsics used by generated optimized operators. | ||
| CONFIG_CMSIS_DSP=y | ||
|
|
||
| # Required for Cortex-M33 devices. | ||
| CONFIG_MAIN_STACK_SIZE=50 | ||
|
|
||
| # For random number generation. | ||
| CONFIG_ENTROPY_GENERATOR=y | ||
|
|
||
| # For debugging. | ||
| CONFIG_LED=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: merged by who?
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.
Done.