Added deletion of numpy version of decoded predictions

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-05-08 13:57:13 +02:00
parent 34c754fca3
commit f0869f0807

View File

@ -213,6 +213,7 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
decoded_predictions_batch_np = np.array(decoded_predictions_batch) decoded_predictions_batch_np = np.array(decoded_predictions_batch)
del decoded_predictions_batch del decoded_predictions_batch
np.save(file, decoded_predictions_batch_np, allow_pickle=False, fix_imports=False) np.save(file, decoded_predictions_batch_np, allow_pickle=False, fix_imports=False)
del decoded_predictions_batch_np
counter += 1 counter += 1