From d89a30680e2ea4dbc00fab710513c2ca3816cf25 Mon Sep 17 00:00:00 2001 From: whs Date: Sun, 22 Apr 2018 02:22:53 +0800 Subject: [PATCH] Fix a wrong variable name. (#10090) --- python/paddle/fluid/layers/nn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 752f4689be..5e6abceb0a 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -2688,7 +2688,7 @@ def edit_distance(input, label, normalized=True, ignored_tokens=None, helper.append_op( type="sequence_erase", inputs={"X": [label]}, - outputs={"Out": [erase_label]}, + outputs={"Out": [erased_label]}, attrs={"tokens": ignored_tokens}) label = erased_label -- GitLab