Skip to content

Commit

Permalink
update quantization docs (PaddlePaddle#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
XGZhang11 authored Jul 21, 2021
1 parent 3babb01 commit 4d75cb9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/zh_cn/api_cn/static/quant/quantization_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4d75cb9

Please sign in to comment.