mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-13 12:50:26 +08:00
added auto port find
This commit is contained in:
@@ -139,10 +139,3 @@ if __name__ == '__main__':
|
||||
pids = subprocess.check_output(command, shell=True)
|
||||
pids = pids.strip()
|
||||
print(pids)
|
||||
if pids:
|
||||
pids = re.sub(' +', ' ', pids)
|
||||
for pid in pids.split('\n'):
|
||||
try:
|
||||
yield int(pid)
|
||||
except:
|
||||
pass
|
||||
Reference in New Issue
Block a user