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 bf7384c commit 83bce75Copy full SHA for 83bce75
data.py
@@ -47,7 +47,7 @@ def _map_fn(image_path):
47
train_ds = tf.data.Dataset.from_generator(generator_train, output_types=tf.string)
48
ds = train_ds.shuffle(buffer_size=4096)
49
# ds = ds.shard(num_shards=hvd.size(), index=hvd.rank())
50
- ds = ds.repeat(n_epoch)
+ # ds = ds.repeat(n_epoch)
51
ds = ds.map(_map_fn, num_parallel_calls=4)
52
ds = ds.batch(batch_size)
53
ds = ds.prefetch(buffer_size=2)
0 commit comments