提交 511c4540 编写于 作者: Y yangyaming

Bug fix.

上级 84f56118
...@@ -129,9 +129,10 @@ class DeepSpeech2Model(object): ...@@ -129,9 +129,10 @@ class DeepSpeech2Model(object):
else: else:
result = trainer.test( result = trainer.test(
reader=dev_batch_reader, feeding=feeding_dict) reader=dev_batch_reader, feeding=feeding_dict)
print("\n------- Time: %d sec, Pass: %d, " print(
"\n------- Time: %d sec, Pass: %d, "
"ValidationCost: %s" % "ValidationCost: %s" %
(time.time() - start_time, event.pass_id, 0)) (time.time() - start_time, event.pass_id, result.cost))
output_model_path = os.path.join( output_model_path = os.path.join(
output_model_dir, "params.pass-%d.tar.gz" % event.pass_id) output_model_dir, "params.pass-%d.tar.gz" % event.pass_id)
with gzip.open(output_model_path, 'w') as f: with gzip.open(output_model_path, 'w') as f:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册