Skip to content

Commit 3a624c2

Browse files
author
Taylor Robie
authored
properly assign dataset in the second prefetch call (#4358)
1 parent ef59b3c commit 3a624c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/resnet/resnet_run_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def process_record_dataset(dataset, is_training, batch_size, shuffle_buffer,
8888
# critical training path. Setting buffer_size to tf.contrib.data.AUTOTUNE
8989
# allows DistributionStrategies to adjust how many batches to fetch based
9090
# on how many devices are present.
91-
dataset.prefetch(buffer_size=tf.contrib.data.AUTOTUNE)
91+
dataset = dataset.prefetch(buffer_size=tf.contrib.data.AUTOTUNE)
9292

9393
return dataset
9494

0 commit comments

Comments
 (0)