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
a945ae9d
Commit
a945ae9d
authored
May 27, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 451473030
parent
a7374b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/common/distribute_utils.py
official/common/distribute_utils.py
+2
-2
No files found.
official/common/distribute_utils.py
View file @
a945ae9d
...
...
@@ -96,7 +96,7 @@ def get_distribution_strategy(distribution_strategy="mirrored",
num_packs
=
1
,
tpu_address
=
None
,
**
kwargs
):
"""Return a
Distribution
Strategy for running the model.
"""Return a Strategy for running the model.
Args:
distribution_strategy: a string specifying which distribution strategy to
...
...
@@ -119,7 +119,7 @@ def get_distribution_strategy(distribution_strategy="mirrored",
**kwargs: Additional kwargs for internal usages.
Returns:
tf.distribute.
Distibution
Strategy object.
tf.distribute.Strategy object.
Raises:
ValueError: if `distribution_strategy` is "off" or "one_device" and
`num_gpus` is larger than 1; or `num_gpus` is negative or if
...
...
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