From bd8b96c19dc1b640705279401a8d8fa17263e022 Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Mon, 17 Feb 2020 12:46:32 +0100 Subject: [PATCH] Remove unneeded Saver instances --- DeepSpeech.py | 3 --- evaluate.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/DeepSpeech.py b/DeepSpeech.py index 96a8ba5c..dabb3143 100755 --- a/DeepSpeech.py +++ b/DeepSpeech.py @@ -811,9 +811,6 @@ def do_single_file_inference(input_file_path): with tfv1.Session(config=Config.session_config) as session: inputs, outputs, _ = create_inference_graph(batch_size=1, n_steps=-1) - # Create a saver using variables from the above newly created graph - saver = tfv1.train.Saver() - # Restore variables from training checkpoint if FLAGS.load == 'auto': method_order = ['best', 'last'] diff --git a/evaluate.py b/evaluate.py index 6a8149be..d0ce3231 100755 --- a/evaluate.py +++ b/evaluate.py @@ -81,9 +81,6 @@ def evaluate(test_csvs, create_model): except NotImplementedError: num_processes = 1 - # Create a saver using variables from the above newly created graph - saver = tfv1.train.Saver() - with tfv1.Session(config=Config.session_config) as session: if FLAGS.load == 'auto': method_order = ['best', 'last']