Skip to content

Commit

Permalink
fix tensorflow scripts typo (#1315)
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue authored Oct 12, 2023
1 parent 4dc6805 commit 93efb88
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 118 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/bash
set -x

function main {
init_params "$@"#!/bin/bash
set -x

function main {
init_params "$@"
run_tuning
Expand Down Expand Up @@ -40,39 +36,4 @@ function run_tuning {
--tune
}

main "$@"

run_tuning

}

# init params
function init_params {

for var in "$@"
do
case $var in
--config=*)
config=$(echo $var |cut -f2 -d=)
;;
--input_model=*)
input_model=$(echo $var |cut -f2 -d=)
;;
--output_model=*)
output_model=$(echo $var |cut -f2 -d=)
;;
esac
done

}

# run_tuning
function run_tuning {
python main.py \
--input-graph ${input_model} \
--output-graph ${output_model} \
--config ${config} \
--tune
}

main "$@"
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/bash
set -x

function main {
init_params "$@"#!/bin/bash
set -x

function main {
init_params "$@"
run_tuning
Expand Down Expand Up @@ -40,39 +36,4 @@ function run_tuning {
--tune
}

main "$@"

run_tuning

}

# init params
function init_params {

for var in "$@"
do
case $var in
--config=*)
config=$(echo $var |cut -f2 -d=)
;;
--input_model=*)
input_model=$(echo $var |cut -f2 -d=)
;;
--output_model=*)
output_model=$(echo $var |cut -f2 -d=)
;;
esac
done

}

# run_tuning
function run_tuning {
python main.py \
--input-graph ${input_model} \
--output-graph ${output_model} \
--config ${config} \
--tune
}

main "$@"
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#!/bin/bash
set -x

function main {
init_params "$@"#!/bin/bash
set -x

function main {
init_params "$@"
run_tuning

}

# init params
Expand Down Expand Up @@ -40,39 +35,4 @@ function run_tuning {
--tune
}

main "$@"

run_tuning

}

# init params
function init_params {

for var in "$@"
do
case $var in
--config=*)
config=$(echo $var |cut -f2 -d=)
;;
--input_model=*)
input_model=$(echo $var |cut -f2 -d=)
;;
--output_model=*)
output_model=$(echo $var |cut -f2 -d=)
;;
esac
done

}

# run_tuning
function run_tuning {
python main.py \
--input-graph ${input_model} \
--output-graph ${output_model} \
--config ${config} \
--tune
}

main "$@"

0 comments on commit 93efb88

Please sign in to comment.