Skip to content

Commit d72829a

Browse files
fionalangtensorflower-gardener
authored andcommitted
Change references from distribution_strategy_context.py to distribute_lib.py in preparation for combining them into distribute_lib.py.
PiperOrigin-RevId: 527412843
1 parent 605b2d7 commit d72829a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keras/distribute/distributed_file_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def write_dirpath(dirpath, strategy):
8484
The writing dir path that should be used to save with distribution.
8585
"""
8686
if strategy is None:
87-
# Infer strategy from `distribution_strategy_context` if not given.
87+
# Infer strategy from `tf.distribute` if not given.
8888
strategy = tf.distribute.get_strategy()
8989
if strategy is None:
9090
# If strategy is still not available, this is not in distributed
@@ -107,7 +107,7 @@ def remove_temp_dirpath(dirpath, strategy):
107107
strategy: The tf.distribute strategy object currently used.
108108
"""
109109
if strategy is None:
110-
# Infer strategy from `distribution_strategy_context` if not given.
110+
# Infer strategy from `tf.distribute` if not given.
111111
strategy = tf.distribute.get_strategy()
112112
if strategy is None:
113113
# If strategy is still not available, this is not in distributed

0 commit comments

Comments
 (0)