Skip to content

Commit 1fca1a3

Browse files
committed
fix the nn.py example
test=develop
1 parent 22125eb commit 1fca1a3

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
@@ -4049,8 +4049,8 @@ def edit_distance(input, label, normalized=True, ignored_tokens=None):
40494049
Examples:
40504050
.. code-block:: python
40514051
4052-
x = fluid.layers.data(name='x', shape=[8], dtype='float32')
4053-
y = fluid.layers.data(name='y', shape=[7], dtype='float32')
4052+
x = fluid.layers.data(name='x', shape=[1], dtype='float32')
4053+
y = fluid.layers.data(name='y', shape=[1], dtype='float32')
40544054
cost = fluid.layers.edit_distance(input=x,label=y)
40554055
"""
40564056
helper = LayerHelper("edit_distance", **locals())

0 commit comments

Comments
 (0)