[Fix] Sleep for a while after generating config

to avoid potential bugs
pull/15/head
Haodong Duan 2021-05-22 22:30:27 +08:00 committed by GitHub
parent 4840043730
commit 20f5c8e97b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import itertools
import os
import os.path as osp
import subprocess
import time
from concurrent.futures import ProcessPoolExecutor as Executor
from typing import Optional, Tuple, Union
@ -322,6 +323,7 @@ def gridsearch(
cmds.append(cmd)
time.sleep(5)
succeed_list, fail_list = [], []
if launcher in ['none', 'pytorch']:
for cmd, exp_name in zip(cmds, exp_names):