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

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

修复paddle.lerp中示例代码错误。
上级 d0e733dd
......@@ -3561,7 +3561,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.
先完成此消息的编辑!
想要评论请 注册