Skip to content

Commit

Permalink
Change references from distribution_strategy_context.py to `distrib…
Browse files Browse the repository at this point in the history
…ute_lib.py` in preparation for combining them into `distribute_lib.py`.

PiperOrigin-RevId: 527412843
  • Loading branch information
fionalang authored and tensorflower-gardener committed Apr 26, 2023
1 parent 605b2d7 commit d72829a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras/distribute/distributed_file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def write_dirpath(dirpath, strategy):
The writing dir path that should be used to save with distribution.
"""
if strategy is None:
# Infer strategy from `distribution_strategy_context` if not given.
# Infer strategy from `tf.distribute` if not given.
strategy = tf.distribute.get_strategy()
if strategy is None:
# If strategy is still not available, this is not in distributed
Expand All @@ -107,7 +107,7 @@ def remove_temp_dirpath(dirpath, strategy):
strategy: The tf.distribute strategy object currently used.
"""
if strategy is None:
# Infer strategy from `distribution_strategy_context` if not given.
# Infer strategy from `tf.distribute` if not given.
strategy = tf.distribute.get_strategy()
if strategy is None:
# If strategy is still not available, this is not in distributed
Expand Down

0 comments on commit d72829a

Please sign in to comment.