diff --git a/deep_speech_2/model_utils/model.py b/deep_speech_2/model_utils/model.py index 67a41bd1118c88c08246096d63449d4e3e375b01..123eed9b42e32aa0391fdac823d71bcc5b7710b4 100644 --- a/deep_speech_2/model_utils/model.py +++ b/deep_speech_2/model_utils/model.py @@ -129,9 +129,10 @@ class DeepSpeech2Model(object): else: result = trainer.test( reader=dev_batch_reader, feeding=feeding_dict) - print("\n------- Time: %d sec, Pass: %d, " - "ValidationCost: %s" % - (time.time() - start_time, event.pass_id, 0)) + print( + "\n------- Time: %d sec, Pass: %d, " + "ValidationCost: %s" % + (time.time() - start_time, event.pass_id, result.cost)) output_model_path = os.path.join( output_model_dir, "params.pass-%d.tar.gz" % event.pass_id) with gzip.open(output_model_path, 'w') as f: