Figure out impact of garbage collection

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-05-01 16:12:57 +02:00
parent ddd54f9acd
commit 616188b19f

View File

@ -213,6 +213,8 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
counter += 1
trs.print_diff()
tf.set_random_seed(1)
context.context()._clear_caches()
gc.collect()