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
5b964dbb
"vscode:/vscode.git/clone" did not exist on "bbb71033c680bdf8634f88cd16ff067184a478f4"
Commit
5b964dbb
authored
May 27, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 451473030
parent
d1d418a5
Changes
1
Show 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 @
5b964dbb
...
@@ -96,7 +96,7 @@ def get_distribution_strategy(distribution_strategy="mirrored",
...
@@ -96,7 +96,7 @@ def get_distribution_strategy(distribution_strategy="mirrored",
num_packs
=
1
,
num_packs
=
1
,
tpu_address
=
None
,
tpu_address
=
None
,
**
kwargs
):
**
kwargs
):
"""Return a
Distribution
Strategy for running the model.
"""Return a Strategy for running the model.
Args:
Args:
distribution_strategy: a string specifying which distribution strategy to
distribution_strategy: a string specifying which distribution strategy to
...
@@ -119,7 +119,7 @@ def get_distribution_strategy(distribution_strategy="mirrored",
...
@@ -119,7 +119,7 @@ def get_distribution_strategy(distribution_strategy="mirrored",
**kwargs: Additional kwargs for internal usages.
**kwargs: Additional kwargs for internal usages.
Returns:
Returns:
tf.distribute.
Distibution
Strategy object.
tf.distribute.Strategy object.
Raises:
Raises:
ValueError: if `distribution_strategy` is "off" or "one_device" and
ValueError: if `distribution_strategy` is "off" or "one_device" and
`num_gpus` is larger than 1; or `num_gpus` is negative or if
`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