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
3a624c29
"vscode:/vscode.git/clone" did not exist on "6ef71d491fef989cdb82b1fc443208531016e05d"
Unverified
Commit
3a624c29
authored
May 24, 2018
by
Taylor Robie
Committed by
GitHub
May 24, 2018
Browse files
properly assign dataset in the second prefetch call (#4358)
parent
ef59b3c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/resnet/resnet_run_loop.py
official/resnet/resnet_run_loop.py
+1
-1
No files found.
official/resnet/resnet_run_loop.py
View file @
3a624c29
...
@@ -88,7 +88,7 @@ def process_record_dataset(dataset, is_training, batch_size, shuffle_buffer,
...
@@ -88,7 +88,7 @@ def process_record_dataset(dataset, is_training, batch_size, shuffle_buffer,
# critical training path. Setting buffer_size to tf.contrib.data.AUTOTUNE
# critical training path. Setting buffer_size to tf.contrib.data.AUTOTUNE
# allows DistributionStrategies to adjust how many batches to fetch based
# allows DistributionStrategies to adjust how many batches to fetch based
# on how many devices are present.
# on how many devices are present.
dataset
.
prefetch
(
buffer_size
=
tf
.
contrib
.
data
.
AUTOTUNE
)
dataset
=
dataset
.
prefetch
(
buffer_size
=
tf
.
contrib
.
data
.
AUTOTUNE
)
return
dataset
return
dataset
...
...
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