Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
2969933c
Commit
2969933c
authored
Jan 27, 2022
by
LDOUBLEV
Browse files
add status_check and set save_log from env
parent
01f35279
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test_tipc/benchmark_train.sh
test_tipc/benchmark_train.sh
+6
-2
No files found.
test_tipc/benchmark_train.sh
View file @
2969933c
...
...
@@ -108,8 +108,8 @@ flags_value=$(func_parser_value "${lines[line_num]}")
gpu_id
=
$(
set_gpu_id
$device_num
)
repo_name
=
$(
get_repo_name
)
SAVE_LOG
=
"
benchmark_log
"
status_log
=
"benchmark_log/results.log"
SAVE_LOG
=
${
BENCHMARK_LOG_DIR
:-
$(
pwd
)
}
# */
benchmark_log
status_log
=
"
${
SAVE_LOG
}
/
benchmark_log/results.log"
# set export
IFS
=
";"
...
...
@@ -173,6 +173,8 @@ if [ ${#gpu_id} -le 1 ];then
--convergence_key
${
convergence_key_value
}
: "
echo
$cmd
eval
$cmd
last_status
=
${
PIPESTATUS
[0]
}
status_check
$last_status
"
${
cmd
}
"
"
${
status_log
}
"
else
log_path
=
"
$SAVE_LOG
/train_log"
...
...
@@ -207,5 +209,7 @@ else
--convergence_key
${
convergence_key_value
}
: "
echo
$cmd
eval
$cmd
last_status
=
${
PIPESTATUS
[0]
}
status_check
$last_status
"
${
cmd
}
"
"
${
status_log
}
"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment