Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Revert "Update utils.py"
Browse files Browse the repository at this point in the history
This reverts commit 70fe5da.
  • Loading branch information
shuyingsunshine21 committed Mar 24, 2021
1 parent dcdcd29 commit 8651d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/metrics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
def setup_ddp(rank, world_size):
""" Setup ddp enviroment """
os.environ["MASTER_ADDR"] = "localhost"
os.environ["MASTER_PORT"] = "8088"
os.environ["MASTER_PORT"] = "29501"

if torch.distributed.is_available() and sys.platform not in ("win32", "cygwin"):
torch.distributed.init_process_group("gloo", rank=rank, world_size=world_size)
Expand Down

0 comments on commit 8651d54

Please sign in to comment.