Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 967133c

Browse files
committed
tweak synth input_fn comments
1 parent c9972ad commit 967133c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

official/resnet/resnet_run_loop.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ def get_synth_input_fn(height, width, num_channels, num_classes,
112112
dtype=tf.float32):
113113
"""Returns an input function that returns a dataset with random data.
114114
115-
This input_fn removed all aspects of the input pipeline other than the
116-
host to device copy. This is useful in debugging input pipeline performance.
115+
This input_fn returns a data set that iterates over a set of random data and
116+
bypasses all preprocessing, e.g. jpeg decode and copy. The host to device
117+
copy is still included. This used to find the upper throughput bound when
118+
tunning the full input pipeline.
117119
118120
Args:
119121
height: Integer height that will be used to create a fake image tensor.

0 commit comments

Comments
 (0)