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']