未验证 提交 cc0fa79b 编写于 作者: W wuhuanzhou 提交者: GitHub

fix sample code error of paddle.lerp, test=document_fix (#42748)

上级 c3d50af8
......@@ -3810,7 +3810,7 @@ def lerp(x, y, weight, name=None):
x = paddle.arange(1., 5., dtype='float32')
y = paddle.empty([4], dtype='float32')
y.fill_(10.)
out = paddle.lerp(start, end, 0.5)
out = paddle.lerp(x, y, 0.5)
# out: [5.5., 6., 6.5, 7.]
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册