add status_check
parent
01093d2146
commit
5ec0d3fa37
|
@ -124,7 +124,7 @@ if [ ${#gpu_id} -le 1 ];then
|
||||||
eval $cmd
|
eval $cmd
|
||||||
last_status=${PIPESTATUS[0]}
|
last_status=${PIPESTATUS[0]}
|
||||||
eval "cat ${log_path}/${log_name}"
|
eval "cat ${log_path}/${log_name}"
|
||||||
status_check $last_status "${command}" "${status_log}"
|
status_check $last_status "${cmd}" "${status_log}"
|
||||||
# without profile
|
# without profile
|
||||||
log_path="$SAVE_LOG/train_log"
|
log_path="$SAVE_LOG/train_log"
|
||||||
mkdir -p $log_path
|
mkdir -p $log_path
|
||||||
|
@ -135,7 +135,7 @@ if [ ${#gpu_id} -le 1 ];then
|
||||||
eval $cmd
|
eval $cmd
|
||||||
last_status=${PIPESTATUS[0]}
|
last_status=${PIPESTATUS[0]}
|
||||||
eval "cat ${log_path}/${log_name}"
|
eval "cat ${log_path}/${log_name}"
|
||||||
status_check $last_status "${command}" "${status_log}"
|
status_check $last_status "${cmd}" "${status_log}"
|
||||||
else
|
else
|
||||||
log_path="$SAVE_LOG/train_log"
|
log_path="$SAVE_LOG/train_log"
|
||||||
mkdir -p $log_path
|
mkdir -p $log_path
|
||||||
|
@ -146,7 +146,7 @@ else
|
||||||
eval $cmd
|
eval $cmd
|
||||||
last_status=${PIPESTATUS[0]}
|
last_status=${PIPESTATUS[0]}
|
||||||
eval "cat ${log_path}/${log_name}"
|
eval "cat ${log_path}/${log_name}"
|
||||||
status_check $last_status "${command}" "${status_log}"
|
status_check $last_status "${cmd}" "${status_log}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue