提交 63503737 编写于 作者: Y Yang yaming 提交者: GitHub

Merge pull request #344 from pkuyym/fix-343

Bug fix.
...@@ -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(
"ValidationCost: %s" % "\n------- Time: %d sec, Pass: %d, "
(time.time() - start_time, event.pass_id, 0)) "ValidationCost: %s" %
(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.
先完成此消息的编辑!
想要评论请 注册