forked from CGCL-codes/naturalcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
15 lines (13 loc) · 1003 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import os
commands = \
"""
CUDA_VISIBLE_DEVICES=0,1,2,3 nohup python -m run.summarization.tree2seq.train -f config/csn_feng/java.fp16 > run/summarization/tree2seq/config/csn_feng/java.fp16.log 2>&1
CUDA_VISIBLE_DEVICES=0,1,2,3 nohup python -m run.summarization.tree2seq.train -f config/csn_feng/go.fp16 > run/summarization/tree2seq/config/csn_feng/go.fp16.log 2>&1
CUDA_VISIBLE_DEVICES=0,1,2,3 nohup python -m run.summarization.tree2seq.train -f config/csn_feng/php.fp16 > run/summarization/tree2seq/config/csn_feng/php.fp16.log 2>&1
CUDA_VISIBLE_DEVICES=0,1,2,3 nohup python -m run.summarization.tree2seq.train -f config/csn_feng/python.fp16 > run/summarization/tree2seq/config/csn_feng/python.fp16.log 2>&1
CUDA_VISIBLE_DEVICES=0,1,2,3 nohup python -m run.summarization.tree2seq.train -f config/csn_feng/javascript.fp16 > run/summarization/tree2seq/config/csn_feng/javascript.fp16.log 2>&1
""".strip()
for cmd in commands.split('\n'):
cmd = cmd.strip()
print(cmd)
os.system(cmd)