Skip to content

Commit e94f097

Browse files
committed
Change benchmark mode to performance
Signed-off-by: Cheng, Penghui <[email protected]>
1 parent 2af6e5c commit e94f097

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/pytorch/nlp/huggingface_models/language-modeling/quantization/ptq_static/fx/run_benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function run_benchmark {
5858

5959
if [[ ${mode} == "accuracy" ]]; then
6060
mode_cmd=" --accuracy_only "
61-
elif [[ ${mode} == "benchmark" ]]; then
61+
elif [[ ${mode} == "performance" ]]; then
6262
mode_cmd=" --benchmark "
6363
extra_cmd=$extra_cmd" --max_eval_samples ${max_eval_samples}"
6464
else

examples/pytorch/nlp/huggingface_models/question-answering/quantization/ptq_static/fx/run_benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function run_benchmark {
5757

5858
if [[ ${mode} == "accuracy" ]]; then
5959
mode_cmd=" --accuracy_only"
60-
elif [[ ${mode} == "benchmark" ]]; then
60+
elif [[ ${mode} == "performance" ]]; then
6161
mode_cmd=" --benchmark --iters "${iters}
6262
else
6363
echo "Error: No such mode: ${mode}"

examples/pytorch/nlp/huggingface_models/question-answering/quantization/ptq_static/ipex/run_benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function init_params {
5454
function run_benchmark {
5555
if [[ ${mode} == "accuracy" ]]; then
5656
mode_cmd=" --accuracy_only"
57-
elif [[ ${mode} == "benchmark" ]]; then
57+
elif [[ ${mode} == "performance" ]]; then
5858
mode_cmd=" --benchmark --iters "${iters}
5959
else
6060
echo "Error: No such mode: ${mode}"

0 commit comments

Comments
 (0)