Merge pull request #14341 from tink2123/fix_example_edit_distance

fix the nn.py example
panyx0718-patch-1
Shan Yi 7 years ago committed by GitHub
commit 38f499df7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4067,8 +4067,8 @@ def edit_distance(input, label, normalized=True, ignored_tokens=None):
Examples:
.. code-block:: python
x = fluid.layers.data(name='x', shape=[8], dtype='float32')
y = fluid.layers.data(name='y', shape=[7], dtype='float32')
x = fluid.layers.data(name='x', shape=[1], dtype='float32')
y = fluid.layers.data(name='y', shape=[1], dtype='float32')
cost = fluid.layers.edit_distance(input=x,label=y)
"""
helper = LayerHelper("edit_distance", **locals())

Loading…
Cancel
Save