未验证 提交 6b77bfff 编写于 作者: G Guanghua Yu 提交者: GitHub

fix default setting of dygraph PTQ (#47413)

上级 800e0534
...@@ -140,7 +140,7 @@ class ImperativePTQ(object): ...@@ -140,7 +140,7 @@ class ImperativePTQ(object):
assert isinstance( assert isinstance(
model, paddle.nn.Layer model, paddle.nn.Layer
), "The model must be the instance of paddle.nn.Layer." ), "The model must be the instance of paddle.nn.Layer."
is_postprocess = config.get('postprocess', False) is_postprocess = config.get('postprocess', True)
config.pop('postprocess', None) config.pop('postprocess', None)
# Convert and save dygraph quantized model # Convert and save dygraph quantized model
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册