Skip to content

Commit d8425e0

Browse files
authored
Merge pull request #14215 from dzhwinter/fix/sequence_pad
"fix comment"
2 parents 5b7a9dd + d4e8d70 commit d8425e0

File tree

1 file changed

+1
-1
lines changed
  • python/paddle/fluid/layers

1 file changed

+1
-1
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3060,7 +3060,7 @@ def sequence_pad(x, pad_value, maxlen=None, name=None):
30603060
x = fluid.layers.data(name='y', shape=[10, 5],
30613061
dtype='float32', lod_level=1)
30623062
pad_value = fluid.layers.assign(
3063-
input=numpy.array([0], dtype=numpy.float32))
3063+
input=numpy.array([0.0], dtype=numpy.float32))
30643064
out = fluid.layers.sequence_pad(x=x, pad_value=pad_value)
30653065
"""
30663066

0 commit comments

Comments
 (0)