Figure out impact of garbage collection
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -213,6 +213,8 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
|
|||||||
|
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
||||||
|
trs.print_diff()
|
||||||
|
|
||||||
tf.set_random_seed(1)
|
tf.set_random_seed(1)
|
||||||
context.context()._clear_caches()
|
context.context()._clear_caches()
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|||||||
Reference in New Issue
Block a user