Skip to content

Commit

Permalink
Set join=False for mp_spawn in the ddp_test
Browse files Browse the repository at this point in the history
  • Loading branch information
stancld committed Aug 29, 2021
1 parent 64e0863 commit f23451e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/text/test_bertscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,4 +315,4 @@ def _test_score_ddp_fn(rank, world_size, preds, refs):
def test_score_ddp(preds, refs):
"""Tests for metric using DDP."""
world_size = 2
mp.spawn(_test_score_ddp_fn, args=(world_size, preds, refs), nprocs=world_size, join=True)
mp.spawn(_test_score_ddp_fn, args=(world_size, preds, refs), nprocs=world_size, join=False)

0 comments on commit f23451e

Please sign in to comment.