Removed extra garbage collection
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -184,9 +184,6 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
|
||||
|
||||
# go through the data set
|
||||
counter = 0
|
||||
import gc
|
||||
|
||||
from tensorflow.python.eager import context
|
||||
|
||||
for inputs, labels in dataset:
|
||||
if use_dropout:
|
||||
@ -249,10 +246,6 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
|
||||
|
||||
counter += 1
|
||||
|
||||
tf.set_random_seed(1)
|
||||
context.context()._clear_caches()
|
||||
gc.collect()
|
||||
|
||||
epoch_end_time = time.time()
|
||||
per_epoch_time = epoch_end_time - epoch_start_time
|
||||
|
||||
|
||||
Reference in New Issue
Block a user