Fixed variable name

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-04-29 11:47:33 +02:00
parent 2735c1c5a9
commit 55481402a8

View File

@ -191,8 +191,8 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
# save predictions batch-wise to prevent memory problems
if nr_digits is not None:
counter = str(counter).zfill(nr_digits)
filename = f"{output_file}-{counter}.npy"
counter_str = str(counter).zfill(nr_digits)
filename = f"{output_file}-{counter_str}.npy"
else:
filename = f"{output_file}-{counter:d}.npy"