Skip to content

Commit

Permalink
fix: setup strategy with set visible devices
Browse files Browse the repository at this point in the history
  • Loading branch information
nglehuy committed Jun 15, 2024
1 parent 31312d5 commit 0e13f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_asr/utils/env_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def setup_strategy(
available_devices = setup_devices(devices)
if len(available_devices) == 1:
return tf.distribute.get_strategy()
return tf.distribute.MirroredStrategy(devices=[d.name for d in available_devices])
return tf.distribute.MultiWorkerMirroredStrategy()


def has_devices(
Expand Down

0 comments on commit 0e13f76

Please sign in to comment.