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
343d7400
Commit
343d7400
authored
Nov 19, 2021
by
LDOUBLEV
Browse files
opt kl quant
parent
ee7694ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
25 deletions
+27
-25
test_tipc/test_train_inference_python.sh
test_tipc/test_train_inference_python.sh
+27
-25
No files found.
test_tipc/test_train_inference_python.sh
View file @
343d7400
...
...
@@ -90,34 +90,36 @@ infer_value1=$(func_parser_value "${lines[50]}")
# parser klquant_infer
if
[
${
MODE
}
=
"klquant_whole_infer"
]
;
then
dataline
=
$(
awk
'NR==
52
NR==
68
{print}'
$FILENAME
)
dataline
=
$(
awk
'NR==
1
NR==
17
{print}'
$FILENAME
)
lines
=(
${
dataline
}
)
model_name
=
$(
func_parser_value
"
${
lines
[1]
}
"
)
python
=
$(
func_parser_value
"
${
lines
[2]
}
"
)
# parser inference model
infer_model_dir_list
=
$(
func_parser_value
"
${
lines
[
1
]
}
"
)
infer_export_list
=
$(
func_parser_value
"
${
lines
[
2
]
}
"
)
infer_is_quant
=
$(
func_parser_value
"
${
lines
[
3
]
}
"
)
infer_model_dir_list
=
$(
func_parser_value
"
${
lines
[
3
]
}
"
)
infer_export_list
=
$(
func_parser_value
"
${
lines
[
4
]
}
"
)
infer_is_quant
=
$(
func_parser_value
"
${
lines
[
5
]
}
"
)
# parser inference
inference_py
=
$(
func_parser_value
"
${
lines
[
4
]
}
"
)
use_gpu_key
=
$(
func_parser_key
"
${
lines
[
5
]
}
"
)
use_gpu_list
=
$(
func_parser_value
"
${
lines
[
5
]
}
"
)
use_mkldnn_key
=
$(
func_parser_key
"
${
lines
[
6
]
}
"
)
use_mkldnn_list
=
$(
func_parser_value
"
${
lines
[
6
]
}
"
)
cpu_threads_key
=
$(
func_parser_key
"
${
lines
[
7
]
}
"
)
cpu_threads_list
=
$(
func_parser_value
"
${
lines
[
7
]
}
"
)
batch_size_key
=
$(
func_parser_key
"
${
lines
[
8
]
}
"
)
batch_size_list
=
$(
func_parser_value
"
${
lines
[
8
]
}
"
)
use_trt_key
=
$(
func_parser_key
"
${
lines
[
9
]
}
"
)
use_trt_list
=
$(
func_parser_value
"
${
lines
[
9
]
}
"
)
precision_key
=
$(
func_parser_key
"
${
lines
[1
0
]
}
"
)
precision_list
=
$(
func_parser_value
"
${
lines
[1
0
]
}
"
)
infer_model_key
=
$(
func_parser_key
"
${
lines
[1
1
]
}
"
)
image_dir_key
=
$(
func_parser_key
"
${
lines
[1
2
]
}
"
)
infer_img_dir
=
$(
func_parser_value
"
${
lines
[1
2
]
}
"
)
save_log_key
=
$(
func_parser_key
"
${
lines
[1
3
]
}
"
)
benchmark_key
=
$(
func_parser_key
"
${
lines
[1
4
]
}
"
)
benchmark_value
=
$(
func_parser_value
"
${
lines
[1
4
]
}
"
)
infer_key1
=
$(
func_parser_key
"
${
lines
[1
5
]
}
"
)
infer_value1
=
$(
func_parser_value
"
${
lines
[1
5
]
}
"
)
inference_py
=
$(
func_parser_value
"
${
lines
[
6
]
}
"
)
use_gpu_key
=
$(
func_parser_key
"
${
lines
[
7
]
}
"
)
use_gpu_list
=
$(
func_parser_value
"
${
lines
[
7
]
}
"
)
use_mkldnn_key
=
$(
func_parser_key
"
${
lines
[
8
]
}
"
)
use_mkldnn_list
=
$(
func_parser_value
"
${
lines
[
8
]
}
"
)
cpu_threads_key
=
$(
func_parser_key
"
${
lines
[
9
]
}
"
)
cpu_threads_list
=
$(
func_parser_value
"
${
lines
[
9
]
}
"
)
batch_size_key
=
$(
func_parser_key
"
${
lines
[
10
]
}
"
)
batch_size_list
=
$(
func_parser_value
"
${
lines
[
10
]
}
"
)
use_trt_key
=
$(
func_parser_key
"
${
lines
[
11
]
}
"
)
use_trt_list
=
$(
func_parser_value
"
${
lines
[
11
]
}
"
)
precision_key
=
$(
func_parser_key
"
${
lines
[1
2
]
}
"
)
precision_list
=
$(
func_parser_value
"
${
lines
[1
2
]
}
"
)
infer_model_key
=
$(
func_parser_key
"
${
lines
[1
3
]
}
"
)
image_dir_key
=
$(
func_parser_key
"
${
lines
[1
4
]
}
"
)
infer_img_dir
=
$(
func_parser_value
"
${
lines
[1
4
]
}
"
)
save_log_key
=
$(
func_parser_key
"
${
lines
[1
5
]
}
"
)
benchmark_key
=
$(
func_parser_key
"
${
lines
[1
6
]
}
"
)
benchmark_value
=
$(
func_parser_value
"
${
lines
[1
6
]
}
"
)
infer_key1
=
$(
func_parser_key
"
${
lines
[1
7
]
}
"
)
infer_value1
=
$(
func_parser_value
"
${
lines
[1
7
]
}
"
)
fi
LOG_PATH
=
"./test_tipc/output"
...
...
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