Skip to content

Commit bc02a02

Browse files
authored
Update train.py
1 parent 849ab78 commit bc02a02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _map_fn_train(img):
6565
train_ds = train_ds.map(_map_fn_train, num_parallel_calls=multiprocessing.cpu_count())
6666
train_ds = train_ds.repeat(n_epoch_init + n_epoch)
6767
train_ds = train_ds.shuffle(shuffle_buffer_size)
68-
train_ds = train_ds.prefetch(buffer_size=4096)
68+
train_ds = train_ds.prefetch(buffer_size=2)
6969
train_ds = train_ds.batch(batch_size)
7070
# value = train_ds.make_one_shot_iterator().get_next()
7171

0 commit comments

Comments
 (0)