未验证 提交 d44ba589 编写于 作者: W wawltor 提交者: GitHub

Fix some doc apis example,scale ops

Fix the doc example api for the scale op
上级 d8f4714b
......@@ -14037,7 +14037,7 @@ def unique(x, dtype='int32'):
import numpy as np
import paddle.fluid as fluid
x = fluid.assign(np.array([2, 3, 3, 1, 5, 3], dtype='int32'))
x = fluid.layers.assign(np.array([2, 3, 3, 1, 5, 3], dtype='int32'))
out, index = fluid.layers.unique(x) # out is [2, 3, 1, 5]; index is [0, 1, 1, 2, 3, 1]
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册