add status_check

pull/5277/head
LDOUBLEV 2022-01-25 08:31:10 +00:00
parent 01093d2146
commit 5ec0d3fa37
1 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ if [ ${#gpu_id} -le 1 ];then
eval $cmd
last_status=${PIPESTATUS[0]}
eval "cat ${log_path}/${log_name}"
status_check $last_status "${command}" "${status_log}"
status_check $last_status "${cmd}" "${status_log}"
# without profile
log_path="$SAVE_LOG/train_log"
mkdir -p $log_path
@ -135,7 +135,7 @@ if [ ${#gpu_id} -le 1 ];then
eval $cmd
last_status=${PIPESTATUS[0]}
eval "cat ${log_path}/${log_name}"
status_check $last_status "${command}" "${status_log}"
status_check $last_status "${cmd}" "${status_log}"
else
log_path="$SAVE_LOG/train_log"
mkdir -p $log_path
@ -146,7 +146,7 @@ else
eval $cmd
last_status=${PIPESTATUS[0]}
eval "cat ${log_path}/${log_name}"
status_check $last_status "${command}" "${status_log}"
status_check $last_status "${cmd}" "${status_log}"
fi