We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 849ab78 commit bc02a02Copy full SHA for bc02a02
train.py
@@ -65,7 +65,7 @@ def _map_fn_train(img):
65
train_ds = train_ds.map(_map_fn_train, num_parallel_calls=multiprocessing.cpu_count())
66
train_ds = train_ds.repeat(n_epoch_init + n_epoch)
67
train_ds = train_ds.shuffle(shuffle_buffer_size)
68
- train_ds = train_ds.prefetch(buffer_size=4096)
+ train_ds = train_ds.prefetch(buffer_size=2)
69
train_ds = train_ds.batch(batch_size)
70
# value = train_ds.make_one_shot_iterator().get_next()
71
0 commit comments