Skip to content

Commit

Permalink
experiment-rs.sh中执行命令变为nohup形式
Browse files Browse the repository at this point in the history
  • Loading branch information
moguizhizi committed Nov 16, 2021
1 parent 760fde7 commit e50e96e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions experiment-rs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ $use_action_space_bucketing = *"True"* ]]; then
use_action_space_bucketing_flag='--use_action_space_bucketing'
fi

cmd="python3 -m src.experiments \
cmd="python3 -u -m src.experiments \
--data_dir $data_dir \
$exp \
--model $model \
Expand Down Expand Up @@ -60,6 +60,13 @@ cmd="python3 -m src.experiments \
--gpu $gpu \
$ARGS"

echo "Executing $cmd"
echo $cmd

arr=(${data_dir//// })
dataset=${arr[1]}

LOG_FILE="logs/rs_"$dataset"_"$model"_GPU_"$gpu".log"

nohup $cmd>$LOG_FILE 2>&1 &


$cmd

0 comments on commit e50e96e

Please sign in to comment.