From 4d75cb9cecf5a02e789576b0c02ce7376615dafd Mon Sep 17 00:00:00 2001 From: XGZhang <46363693+XGZhang11@users.noreply.github.com> Date: Wed, 21 Jul 2021 12:55:34 +0800 Subject: [PATCH] update quantization docs (#856) --- docs/zh_cn/api_cn/static/quant/quantization_api.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/zh_cn/api_cn/static/quant/quantization_api.rst b/docs/zh_cn/api_cn/static/quant/quantization_api.rst index cd0ee96e0..0c63e8765 100644 --- a/docs/zh_cn/api_cn/static/quant/quantization_api.rst +++ b/docs/zh_cn/api_cn/static/quant/quantization_api.rst @@ -306,13 +306,12 @@ convert .. code-block:: python - #encoding=utf8 + import paddle import paddle.fluid as fluid import paddleslim.quant as quant - + paddle.enable_static() train_program = fluid.Program() - with fluid.program_guard(train_program): image = fluid.data(name='x', shape=[None, 1, 28, 28]) label = fluid.data(name='label', shape=[None, 1], dtype='int64')