Skip to content

Commit e50e96e

Browse files
committed
experiment-rs.sh中执行命令变为nohup形式
1 parent 760fde7 commit e50e96e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

experiment-rs.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if [[ $use_action_space_bucketing = *"True"* ]]; then
2121
use_action_space_bucketing_flag='--use_action_space_bucketing'
2222
fi
2323

24-
cmd="python3 -m src.experiments \
24+
cmd="python3 -u -m src.experiments \
2525
--data_dir $data_dir \
2626
$exp \
2727
--model $model \
@@ -60,6 +60,13 @@ cmd="python3 -m src.experiments \
6060
--gpu $gpu \
6161
$ARGS"
6262

63-
echo "Executing $cmd"
63+
echo $cmd
64+
65+
arr=(${data_dir//// })
66+
dataset=${arr[1]}
67+
68+
LOG_FILE="logs/rs_"$dataset"_"$model"_GPU_"$gpu".log"
69+
70+
nohup $cmd>$LOG_FILE 2>&1 &
71+
6472

65-
$cmd

0 commit comments

Comments
 (0)