-
Notifications
You must be signed in to change notification settings - Fork 121
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
ESP-DL tutorial/tvm_example No module named 'tvm.relay.op.contrib.esp' (IDFGH-12113) (AIV-678) #154
Comments
Working on Linux now, but not the other platforms. the downloads.sh only seems to get libtvm*.so files for Linux but not libtvm*.dylib files for the Mac |
You can refer to the following link for details: https://docs.espressif.com/projects/esp-dl/en/latest/esp32s3/tutorials/deploying-models-through-tvm.html#set-tvm-package-path Check if the PYTHONPATH environment variable is set to the correct value, ensuring that the path matches the local tvm/python folder path (export PYTHONPATH=$PYTHONPATH:/path-to-esp-dl/esp-dl/tools/tvm/python). |
On Ubuntu, the following output is produced: esp-dl/tutorial/tvm_example$ . ./script.sh
|
Your previous error was: “ModuleNotFoundError: No module named 'tvm.relay.op.contrib.esp'.” |
Answers checklist.
IDF version.
5.0
Operating System used.
Linux
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
What is the expected behavior?
successful build
What is the actual behavior?
esp-dl/tutorial/tvm_example$ . ./script.sh
Collecting tensor data and making histogram ...
Finding optimal threshold for each tensor using entropy algorithm ...
Number of tensors : 25
Number of histogram bins : 128 (The number may increase depends on the data it collects)
Number of quantized bins : 128
WARNING:root:Please use QuantFormat.QDQ for activation type QInt8 and weight type QInt8. Or it will lead to bad performance on x64.
Traceback (most recent call last):
File "../../tools/tvm/export_onnx_model.py", line 11, in
from tvm.relay.op.contrib.esp import preprocess_onnx_for_esp, evaluate_onnx_for_esp
ModuleNotFoundError: No module named 'tvm.relay.op.contrib.esp'
Steps to reproduce.
cd esp-dl/tutorial/tvm_example
. ./script.sh
Build or installation Logs.
More Information.
Also tried on Mac Intel, M1 and M2 and Windows 11
The text was updated successfully, but these errors were encountered: