Skip to content

Commit afe0c64

Browse files
committed
Don't try to read the files twice...
1 parent 885e1b7 commit afe0c64

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

official/resnet/imagenet_main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def input_fn(is_training, data_dir, batch_size, num_epochs=1):
179179
# num_parallel_calls?
180180
dataset = dataset.apply(tf.contrib.data.parallel_interleave(
181181
tf.data.TFRecordDataset, cycle_length=10))
182-
dataset = dataset.flat_map(tf.data.TFRecordDataset)
183182

184183
return resnet_run_loop.process_record_dataset(
185184
dataset, is_training, batch_size, _SHUFFLE_BUFFER, parse_record,

0 commit comments

Comments
 (0)