Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zsdonghao authored Jul 25, 2019
1 parent 849ab78 commit bc02a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _map_fn_train(img):
train_ds = train_ds.map(_map_fn_train, num_parallel_calls=multiprocessing.cpu_count())
train_ds = train_ds.repeat(n_epoch_init + n_epoch)
train_ds = train_ds.shuffle(shuffle_buffer_size)
train_ds = train_ds.prefetch(buffer_size=4096)
train_ds = train_ds.prefetch(buffer_size=2)
train_ds = train_ds.batch(batch_size)
# value = train_ds.make_one_shot_iterator().get_next()

Expand Down

0 comments on commit bc02a02

Please sign in to comment.