File tree Expand file tree Collapse file tree 3 files changed +0
-118
lines changed
examples/tensorflow/image_recognition/tensorflow_models
densenet121/quantization/ptq
densenet161/quantization/ptq
densenet169/quantization/ptq Expand file tree Collapse file tree 3 files changed +0
-118
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -x
33
4- function main {
5- init_params " $@ " #! /bin/bash
6- set -x
7-
84function main {
95 init_params " $@ "
106 run_tuning
@@ -40,39 +36,4 @@ function run_tuning {
4036 --tune
4137}
4238
43- main " $@ "
44-
45- run_tuning
46-
47- }
48-
49- # init params
50- function init_params {
51-
52- for var in " $@ "
53- do
54- case $var in
55- --config=* )
56- config=$( echo $var | cut -f2 -d=)
57- ;;
58- --input_model=* )
59- input_model=$( echo $var | cut -f2 -d=)
60- ;;
61- --output_model=* )
62- output_model=$( echo $var | cut -f2 -d=)
63- ;;
64- esac
65- done
66-
67- }
68-
69- # run_tuning
70- function run_tuning {
71- python main.py \
72- --input-graph ${input_model} \
73- --output-graph ${output_model} \
74- --config ${config} \
75- --tune
76- }
77-
7839main " $@ "
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -x
33
4- function main {
5- init_params " $@ " #! /bin/bash
6- set -x
7-
84function main {
95 init_params " $@ "
106 run_tuning
@@ -40,39 +36,4 @@ function run_tuning {
4036 --tune
4137}
4238
43- main " $@ "
44-
45- run_tuning
46-
47- }
48-
49- # init params
50- function init_params {
51-
52- for var in " $@ "
53- do
54- case $var in
55- --config=* )
56- config=$( echo $var | cut -f2 -d=)
57- ;;
58- --input_model=* )
59- input_model=$( echo $var | cut -f2 -d=)
60- ;;
61- --output_model=* )
62- output_model=$( echo $var | cut -f2 -d=)
63- ;;
64- esac
65- done
66-
67- }
68-
69- # run_tuning
70- function run_tuning {
71- python main.py \
72- --input-graph ${input_model} \
73- --output-graph ${output_model} \
74- --config ${config} \
75- --tune
76- }
77-
7839main " $@ "
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -x
33
4- function main {
5- init_params " $@ " #! /bin/bash
6- set -x
7-
84function main {
95 init_params " $@ "
106 run_tuning
11-
127}
138
149# init params
@@ -40,39 +35,4 @@ function run_tuning {
4035 --tune
4136}
4237
43- main " $@ "
44-
45- run_tuning
46-
47- }
48-
49- # init params
50- function init_params {
51-
52- for var in " $@ "
53- do
54- case $var in
55- --config=* )
56- config=$( echo $var | cut -f2 -d=)
57- ;;
58- --input_model=* )
59- input_model=$( echo $var | cut -f2 -d=)
60- ;;
61- --output_model=* )
62- output_model=$( echo $var | cut -f2 -d=)
63- ;;
64- esac
65- done
66-
67- }
68-
69- # run_tuning
70- function run_tuning {
71- python main.py \
72- --input-graph ${input_model} \
73- --output-graph ${output_model} \
74- --config ${config} \
75- --tune
76- }
77-
7838main " $@ "
You can’t perform that action at this time.
0 commit comments