Skip to content

Commit

Permalink
Merge pull request #75 from baidu/Change-input-of-ctc_error_evaluator…
Browse files Browse the repository at this point in the history
…-in-the-test

Change input of ctc error evaluator in the test
  • Loading branch information
qingqing01 authored Sep 14, 2016
2 parents 7e79c91 + 363b606 commit f8eedce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions python/paddle/trainer_config_helpers/evaluators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f8eedce

Please sign in to comment.