未验证 提交 38f499df 编写于 作者: S Shan Yi 提交者: GitHub

Merge pull request #14341 from tink2123/fix_example_edit_distance

fix the nn.py example
...@@ -4067,8 +4067,8 @@ def edit_distance(input, label, normalized=True, ignored_tokens=None): ...@@ -4067,8 +4067,8 @@ def edit_distance(input, label, normalized=True, ignored_tokens=None):
Examples: Examples:
.. code-block:: python .. code-block:: python
x = fluid.layers.data(name='x', shape=[8], dtype='float32') x = fluid.layers.data(name='x', shape=[1], dtype='float32')
y = fluid.layers.data(name='y', shape=[7], dtype='float32') y = fluid.layers.data(name='y', shape=[1], dtype='float32')
cost = fluid.layers.edit_distance(input=x,label=y) cost = fluid.layers.edit_distance(input=x,label=y)
""" """
helper = LayerHelper("edit_distance", **locals()) helper = LayerHelper("edit_distance", **locals())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册