Skip to content

Commit c7556ad

Browse files
committed
fixed inconsistent whitespace
1 parent 1824d71 commit c7556ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/model_fn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def _get_output( rnn_logits, sequence_length, lexicon, lexicon_prior ):
329329
seq_prob: Score of prediction
330330
"""
331331
with tf.name_scope("test"):
332-
if lexicon:
332+
if lexicon:
333333
ctc_blank = (rnn_logits.shape[2]-1)
334334
lex_prediction,lex_seq_prob = _get_lexicon_output(rnn_logits,
335335
sequence_length, lexicon )
@@ -365,7 +365,7 @@ def _get_output( rnn_logits, sequence_length, lexicon, lexicon_prior ):
365365
eos_token=ctc_blank )
366366
# (2) CTCWordBeamSearch returns only top match, so convert to list
367367
prediction = [prediction]
368-
else:
368+
else:
369369
prediction, seq_prob = _get_open_output(rnn_logits, sequence_length)
370370

371371
return prediction, seq_prob

0 commit comments

Comments
 (0)