Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
c4e7318b
"...resnet50_tensorflow.git" did not exist on "b60dc23714d97ca0218a70d912353f388d75b5ef"
Commit
c4e7318b
authored
Oct 05, 2018
by
Toby Boyd
Browse files
roll back AUTOTUNE
parent
fe3746e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
official/resnet/resnet_run_loop.py
official/resnet/resnet_run_loop.py
+1
-5
No files found.
official/resnet/resnet_run_loop.py
View file @
c4e7318b
...
@@ -68,11 +68,6 @@ def process_record_dataset(dataset, is_training, batch_size, shuffle_buffer,
...
@@ -68,11 +68,6 @@ def process_record_dataset(dataset, is_training, batch_size, shuffle_buffer,
Dataset of (image, label) pairs ready for iteration.
Dataset of (image, label) pairs ready for iteration.
"""
"""
# Sets tf.data to AUTOTUNE, e.g. num_parallel_batches in map_and_batch.
options
=
tf
.
data
.
Options
()
options
.
experimental_autotune
=
True
dataset
=
dataset
.
with_options
(
options
)
# Prefetches a batch at a time to smooth out the time taken to load input
# Prefetches a batch at a time to smooth out the time taken to load input
# files for shuffling and processing.
# files for shuffling and processing.
dataset
=
dataset
.
prefetch
(
buffer_size
=
batch_size
)
dataset
=
dataset
.
prefetch
(
buffer_size
=
batch_size
)
...
@@ -88,6 +83,7 @@ def process_record_dataset(dataset, is_training, batch_size, shuffle_buffer,
...
@@ -88,6 +83,7 @@ def process_record_dataset(dataset, is_training, batch_size, shuffle_buffer,
tf
.
contrib
.
data
.
map_and_batch
(
tf
.
contrib
.
data
.
map_and_batch
(
lambda
value
:
parse_record_fn
(
value
,
is_training
,
dtype
),
lambda
value
:
parse_record_fn
(
value
,
is_training
,
dtype
),
batch_size
=
batch_size
,
batch_size
=
batch_size
,
num_parallel_calls
=
1
,
drop_remainder
=
False
))
drop_remainder
=
False
))
# Operations between the final prefetch and the get_next call to the iterator
# Operations between the final prefetch and the get_next call to the iterator
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment