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

关于yolov5s进行PTQ量化出现TraceError问题 #220

Closed
xiaopengaia opened this issue Dec 5, 2022 · 3 comments
Closed

关于yolov5s进行PTQ量化出现TraceError问题 #220

xiaopengaia opened this issue Dec 5, 2022 · 3 comments
Labels

Comments

@xiaopengaia
Copy link

嗨 大家好,

今天我尝试使用mqbench对yolov5s进行PTQ量化

yolov5s模型来自于:https://github.com/ultralytics/yolov5.git

当我尝试如下代码进行yolov5s量化处理时

from mqbench.prepare_by_platform import prepare_by_platform, BackendType

backend = BackendType.ONNX_QNN
model = prepare_by_platform(model, backend)

出现了这个问题

torch.fx.proxy.TraceError: symbolically traced variables cannot be used as inputs to control flow

请问大家,这个问题有什么好的,简便的方式处理呢?

@aksenventwo
Copy link

可以看看 #82

@xiaopengaia
Copy link
Author

好的,非常感谢,这个对我很有帮助

@github-actions
Copy link

github-actions bot commented Apr 7, 2023

This issue has not received any updates in 120 days. Please reply to this issue if this still unresolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants