提交 b303e296 编写于 作者: D dyning

test=develop, test=document_fix

上级 4b2815f5
...@@ -30,7 +30,7 @@ unsqueeze ...@@ -30,7 +30,7 @@ unsqueeze
import numpy as np import numpy as np
with fluid.dygraph.guard(): with fluid.dygraph.guard():
input_1 = np.random.random([5, 10]).astype("int32") input_1 = np.random.random([5, 10]).astype("int32")
# input is a variable which shape is [5, 1, 10] # input is a variable which shape is [5, 10]
input = fluid.dygraph.to_variable(input_1) input = fluid.dygraph.to_variable(input_1)
output = paddle.unsqueeze(input, axes=[1]) output = paddle.unsqueeze(input, axes=[1])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册