未验证 提交 d8425e0f 编写于 作者: D dzhwinter 提交者: GitHub

Merge pull request #14215 from dzhwinter/fix/sequence_pad

"fix comment"
...@@ -3060,7 +3060,7 @@ def sequence_pad(x, pad_value, maxlen=None, name=None): ...@@ -3060,7 +3060,7 @@ def sequence_pad(x, pad_value, maxlen=None, name=None):
x = fluid.layers.data(name='y', shape=[10, 5], x = fluid.layers.data(name='y', shape=[10, 5],
dtype='float32', lod_level=1) dtype='float32', lod_level=1)
pad_value = fluid.layers.assign( pad_value = fluid.layers.assign(
input=numpy.array([0], dtype=numpy.float32)) input=numpy.array([0.0], dtype=numpy.float32))
out = fluid.layers.sequence_pad(x=x, pad_value=pad_value) out = fluid.layers.sequence_pad(x=x, pad_value=pad_value)
""" """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册