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
7acce35d
Commit
7acce35d
authored
Oct 05, 2019
by
Jing Li
Committed by
A. Unique TensorFlower
Oct 05, 2019
Browse files
Fix bug in test dataset generation
PiperOrigin-RevId: 273066504
parent
f8d9c9b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
official/resnet/ctl/ctl_imagenet_main.py
official/resnet/ctl/ctl_imagenet_main.py
+7
-6
No files found.
official/resnet/ctl/ctl_imagenet_main.py
View file @
7acce35d
...
...
@@ -128,13 +128,14 @@ def get_input_dataset(flags_obj, strategy):
input_context
=
ctx
)
return
test_ds
if
strategy
:
if
isinstance
(
strategy
,
tf
.
distribute
.
experimental
.
TPUStrategy
):
test_ds
=
strategy
.
experimental_distribute_datasets_from_function
(
_test_data_fn
)
if
strategy
:
if
isinstance
(
strategy
,
tf
.
distribute
.
experimental
.
TPUStrategy
):
test_ds
=
strategy
.
experimental_distribute_datasets_from_function
(
_test_data_fn
)
else
:
test_ds
=
strategy
.
experimental_distribute_dataset
(
_test_data_fn
())
else
:
test_ds
=
strategy
.
experimental_distribute_dataset
(
_test_data_fn
())
else
:
test_ds
=
_test_data_fn
()
test_ds
=
_test_data_fn
()
return
train_ds
,
test_ds
...
...
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