"tests/vscode:/vscode.git/clone" did not exist on "9289e577ec185bd9feb2c03bb86b82f1bf9bb633"
Commit 1c99681e authored by wangtz's avatar wangtz Committed by Taylor Robie
Browse files

Stop crashing at the end of training phase. (#6049)

It currently fails with
TypeError: not all arguments converted during string formatting
parent 24808c9d
...@@ -232,8 +232,8 @@ def evaluate_and_log_bleu(estimator, bleu_source, bleu_ref, vocab_file): ...@@ -232,8 +232,8 @@ def evaluate_and_log_bleu(estimator, bleu_source, bleu_ref, vocab_file):
uncased_score, cased_score = translate_and_compute_bleu( uncased_score, cased_score = translate_and_compute_bleu(
estimator, subtokenizer, bleu_source, bleu_ref) estimator, subtokenizer, bleu_source, bleu_ref)
tf.logging.info("Bleu score (uncased):", uncased_score) tf.logging.info("Bleu score (uncased): %d", uncased_score)
tf.logging.info("Bleu score (cased):", cased_score) tf.logging.info("Bleu score (cased): %d", cased_score)
return uncased_score, cased_score return uncased_score, cased_score
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment