pull/2/head
yangyaming 8 years ago
parent 84f56118b4
commit 511c454008

@ -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:

Loading…
Cancel
Save