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
88eac22a
Commit
88eac22a
authored
Oct 24, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Oct 24, 2021
Browse files
input_options should be popped instead of using `get`.
PiperOrigin-RevId: 405317879
parent
bae103c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
orbit/utils/common.py
orbit/utils/common.py
+1
-1
No files found.
orbit/utils/common.py
View file @
88eac22a
...
...
@@ -64,7 +64,7 @@ def make_distributed_dataset(strategy, dataset_or_fn, *args, **kwargs):
if
strategy
is
None
:
strategy
=
tf
.
distribute
.
get_strategy
()
input_options
=
kwargs
.
get
(
"input_options"
,
None
)
input_options
=
kwargs
.
pop
(
"input_options"
,
None
)
if
isinstance
(
dataset_or_fn
,
tf
.
data
.
Dataset
):
return
strategy
.
experimental_distribute_dataset
(
dataset_or_fn
,
...
...
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