Skip to content

Commit

Permalink
set multiprocessing start method to spawn
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Jan 27, 2024
1 parent c62932f commit 956f16c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/tests/pt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

torch.set_num_threads(1)
torch.set_num_interop_threads(1)
torch.multiprocessing.set_start_method("spawn")

0 comments on commit 956f16c

Please sign in to comment.