Figure out impact of garbage collection
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -212,6 +212,8 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
|
|||||||
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)
|
||||||
|
|
||||||
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user