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
0269080a
Commit
0269080a
authored
Feb 08, 2022
by
LDOUBLEV
Browse files
delete debug
parent
e039650e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
test_tipc/benchmark_trainv2.sh
test_tipc/benchmark_trainv2.sh
+1
-5
No files found.
test_tipc/benchmark_trainv2.sh
View file @
0269080a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
source
test_tipc/common_func.sh
source
test_tipc/common_func.sh
# set env
# set env
python
=
python
3.7
python
=
python
export
model_branch
=
`
git symbolic-ref HEAD 2>/dev/null |
cut
-d
"/"
-f
3
`
export
model_branch
=
`
git symbolic-ref HEAD 2>/dev/null |
cut
-d
"/"
-f
3
`
export
model_commit
=
$(
git log|head
-n1
|awk
'{print $2}'
)
export
model_commit
=
$(
git log|head
-n1
|awk
'{print $2}'
)
export
str_tmp
=
$(
echo
`
pip list|grep paddlepaddle-gpu|awk
-F
' '
'{print $2}'
`
)
export
str_tmp
=
$(
echo
`
pip list|grep paddlepaddle-gpu|awk
-F
' '
'{print $2}'
`
)
...
@@ -124,8 +124,6 @@ if [ ! -n "$PARAMS" ] ;then
...
@@ -124,8 +124,6 @@ if [ ! -n "$PARAMS" ] ;then
fp_items_list
=(
${
fp_items
}
)
fp_items_list
=(
${
fp_items
}
)
device_num_list
=(
N1C4
)
device_num_list
=(
N1C4
)
run_mode
=
"DP"
run_mode
=
"DP"
echo
"batchsize list:
$batch_size_list
${
batch_size_list
[1]
}
"
echo
"fp_item_lists:
$fp_items_list
${
fp_items_list
[1]
}
"
else
else
# parser params from input: modeltype_bs${bs_item}_${fp_item}_${run_process_type}_${run_mode}_${device_num}
# parser params from input: modeltype_bs${bs_item}_${fp_item}_${run_process_type}_${run_mode}_${device_num}
IFS
=
"_"
IFS
=
"_"
...
@@ -152,7 +150,6 @@ IFS="|"
...
@@ -152,7 +150,6 @@ IFS="|"
for
batch_size
in
${
batch_size_list
[*]
}
;
do
for
batch_size
in
${
batch_size_list
[*]
}
;
do
for
precision
in
${
fp_items_list
[*]
}
;
do
for
precision
in
${
fp_items_list
[*]
}
;
do
for
device_num
in
${
device_num_list
[*]
}
;
do
for
device_num
in
${
device_num_list
[*]
}
;
do
echo
"for
$batch_size
$precision
$device_num
$epoch
"
# sed batchsize and precision
# sed batchsize and precision
func_sed_params
"
$FILENAME
"
"6"
"
$precision
"
func_sed_params
"
$FILENAME
"
"6"
"
$precision
"
func_sed_params
"
$FILENAME
"
"9"
"
$MODE
=
$batch_size
"
func_sed_params
"
$FILENAME
"
"9"
"
$MODE
=
$batch_size
"
...
@@ -166,7 +163,6 @@ for batch_size in ${batch_size_list[*]}; do
...
@@ -166,7 +163,6 @@ for batch_size in ${batch_size_list[*]}; do
log_name
=
"
${
repo_name
}
_
${
model_name
}
_bs
${
batch_size
}
_
${
precision
}
_
${
run_process_type
}
_
${
run_mode
}
_
${
device_num
}
_profiling"
log_name
=
"
${
repo_name
}
_
${
model_name
}
_bs
${
batch_size
}
_
${
precision
}
_
${
run_process_type
}
_
${
run_mode
}
_
${
device_num
}
_profiling"
func_sed_params
"
$FILENAME
"
"4"
"0"
# sed used gpu_id
func_sed_params
"
$FILENAME
"
"4"
"0"
# sed used gpu_id
# set profile_option params
# set profile_option params
echo
"profile_option:
${
profile_option
}
"
tmp
=
`
sed
-i
"13s/.*/
${
profile_option
}
/"
"
${
FILENAME
}
"
`
tmp
=
`
sed
-i
"13s/.*/
${
profile_option
}
/"
"
${
FILENAME
}
"
`
# run test_train_inference_python.sh
# run test_train_inference_python.sh
...
...
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