未验证 提交 4d75cb9c 编写于 作者: X XGZhang 提交者: GitHub

update quantization docs (#856)

上级 3babb011
......@@ -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')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册