From f392452308ee7d02617671c09971e4c744ac2379 Mon Sep 17 00:00:00 2001 From: emailweixu Date: Wed, 14 Sep 2016 10:12:46 -0700 Subject: [PATCH 1/2] Update layers_test_config.py --- .../paddle/trainer_config_helpers/tests/layers_test_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/trainer_config_helpers/tests/layers_test_config.py b/python/paddle/trainer_config_helpers/tests/layers_test_config.py index d479fb263fb66..763993231f72f 100644 --- a/python/paddle/trainer_config_helpers/tests/layers_test_config.py +++ b/python/paddle/trainer_config_helpers/tests/layers_test_config.py @@ -41,7 +41,7 @@ ctc = ctc_layer(input=tmp, label=y, size=num_classes + 1) -ctc_eval = ctc_error_evaluator(input=ctc, label=y) +ctc_eval = ctc_error_evaluator(input=tmp, label=y) settings( batch_size=10, From 363b60616c533de05bb9f5305aee43d0f8fa9b14 Mon Sep 17 00:00:00 2001 From: emailweixu Date: Wed, 14 Sep 2016 10:19:48 -0700 Subject: [PATCH 2/2] Update comment for ctc_error_evaluator --- python/paddle/trainer_config_helpers/evaluators.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/paddle/trainer_config_helpers/evaluators.py b/python/paddle/trainer_config_helpers/evaluators.py index 179a3a053a961..985fae9f955c9 100644 --- a/python/paddle/trainer_config_helpers/evaluators.py +++ b/python/paddle/trainer_config_helpers/evaluators.py @@ -310,9 +310,10 @@ def ctc_error_evaluator( :param name: Evaluator name. :type name: None|basestring - :param input: Input Layer. + :param input: Input Layer. Should be the same as the input for ctc_layer. :type input: LayerOutput - :param label: input label, which is a data_layer. + :param label: input label, which is a data_layer. Should be the same as the + label for ctc_layer :type label: LayerOutput """ evaluator_base(name=name,