Added summary check to see what remains after gc

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

View File

@ -219,6 +219,8 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
tf.set_random_seed(1) tf.set_random_seed(1)
context.context()._clear_caches() context.context()._clear_caches()
gc.collect() gc.collect()
trs.print_diff()
epoch_end_time = time.time() epoch_end_time = time.time()
per_epoch_time = epoch_end_time - epoch_start_time per_epoch_time = epoch_end_time - epoch_start_time