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

运行/tools/quantization_tool/examples/example.py 报错MatMul算子在esp-dl上不支持 (AIV-599) #120

Open
junnan-xjtu opened this issue Apr 3, 2023 · 4 comments

Comments

@junnan-xjtu
Copy link

报错信息:
Generating the quantization table:
MatMul is not supported on esp-dl yet
Traceback (most recent call last):
File "example.py", line 38, in
calib.generate_quantization_table(model_proto, calib_dataset, pickle_file_path)
File "calibrator.py", line 344, in calibrator.Calibrator.generate_quantization_table
File "calibrator.py", line 231, in calibrator.Calibrator.generate_output_model
File "calibrator.py", line 226, in calibrator.Calibrator.check_model
ValueError: current model is not supported by esp-dl

@junnan-xjtu
Copy link
Author

请问这是什么原因造成的,代码没有改动过

@github-actions github-actions bot changed the title 运行/tools/quantization_tool/examples/example.py 报错MatMul算子在esp-dl上不支持 运行/tools/quantization_tool/examples/example.py 报错MatMul算子在esp-dl上不支持 (AIV-599) Apr 3, 2023
@Raven888888
Copy link

Did you face this problem during setup? #121

@Auroragan
Copy link

Hi, example.py 中会调用 optimized_model_path = optimize_fp_model(model_path) 这个函数来将 matmul 转为 gemm,函数定义在 https://github.com/espressif/esp-dl/blob/master/tools/quantization_tool/optimizer.py,检查一下路径之类的有没有问题吧

@zhouayi
Copy link

zhouayi commented Nov 22, 2023

我也出现了同样的问题,然后我原本的环境是python=3.7,onnx=1.13.1。然后我将onnx降低版本为1.9.0后,问题解决了
github

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

No branches or pull requests

4 participants