未验证 提交 47d83bd3 编写于 作者: P Pei Yang 提交者: GitHub

fix full_like demo (#2234)

上级 647a7727
......@@ -28,7 +28,7 @@ full_like
import paddle.fluid as fluid
import numpy as np
input = fluid.data(name='input', dtype='float32', shape=[2, 3])
output = fluid.layers..full_like(input, 2.0)
output = fluid.layers.full_like(input, 2.0)
exe = fluid.Executor(fluid.CPUPlace())
exe.run(fluid.default_startup_program())
img=np.array([[1, 2, 3], [4, 5, 6]]).astype(np.float32)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册