Skip to content

Commit 93efb88

Browse files
authored
fix tensorflow scripts typo (#1315)
Signed-off-by: chensuyue <suyue.chen@intel.com>
1 parent 4dc6805 commit 93efb88

File tree

3 files changed

+0
-118
lines changed

3 files changed

+0
-118
lines changed
Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#!/bin/bash
22
set -x
33

4-
function main {
5-
init_params "$@"#!/bin/bash
6-
set -x
7-
84
function 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-
7839
main "$@"
Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#!/bin/bash
22
set -x
33

4-
function main {
5-
init_params "$@"#!/bin/bash
6-
set -x
7-
84
function 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-
7839
main "$@"
Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
#!/bin/bash
22
set -x
33

4-
function main {
5-
init_params "$@"#!/bin/bash
6-
set -x
7-
84
function 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-
7838
main "$@"

0 commit comments

Comments
 (0)