未验证 提交 4b3a7c99 编写于 作者: B Bai Yifan 提交者: GitHub

add warn when import quant failed (#505)

上级 223797e1
......@@ -32,6 +32,7 @@ try:
from .quanter import quant_aware, convert, quant_post_static, quant_post_dynamic
from .quanter import quant_post, quant_post_only_weight
except Exception as e:
_logger.warning(e)
_logger.warning(
"If you want to use training-aware and post-training quantization, "
"please use Paddle >= 1.8.4 or develop version")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册