Skip to content

Commit 38f499d

Browse files
authored
Merge pull request #14341 from tink2123/fix_example_edit_distance
fix the nn.py example
2 parents 6c7b64c + 1fca1a3 commit 38f499d

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4067,8 +4067,8 @@ def edit_distance(input, label, normalized=True, ignored_tokens=None):
40674067
Examples:
40684068
.. code-block:: python
40694069
4070-
x = fluid.layers.data(name='x', shape=[8], dtype='float32')
4071-
y = fluid.layers.data(name='y', shape=[7], dtype='float32')
4070+
x = fluid.layers.data(name='x', shape=[1], dtype='float32')
4071+
y = fluid.layers.data(name='y', shape=[1], dtype='float32')
40724072
cost = fluid.layers.edit_distance(input=x,label=y)
40734073
"""
40744074
helper = LayerHelper("edit_distance", **locals())

0 commit comments

Comments
 (0)