Skip to content

Commit

Permalink
Revert "[OTX] Bugfix: multi GPU raise error when num_workers isn't se…
Browse files Browse the repository at this point in the history
…t as 0. (openvinotoolkit#1475)"

This reverts commit c076902.
  • Loading branch information
cih9088 committed Jan 5, 2023
1 parent eeaf4d9 commit 088bdc7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion otx/cli/utils/multi_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def run_child_process(train_func: Callable, rank: int, gpu_ids: List[int], outpu
output_path (str): output path where task output are saved.
multi_gpu_port (str): port for communication between multi GPU processes.
"""
mp.set_start_method(method="fork", force=True) # set multi porcess method as fork
gpus_arg_idx = sys.argv.index("--gpus")
for _ in range(2):
sys.argv.pop(gpus_arg_idx)
Expand Down

0 comments on commit 088bdc7

Please sign in to comment.