diff --git a/test_tipc/benchmark_train.sh b/test_tipc/benchmark_train.sh index cc61567e315d662975389a7bb385147609c90734..fc49cbb3e69771efb49b39c45cd627a314205360 100644 --- a/test_tipc/benchmark_train.sh +++ b/test_tipc/benchmark_train.sh @@ -32,11 +32,7 @@ function func_sed_params(){ array=(${params}) key=${array[0]} value=${array[1]} - if [[ $value =~ 'benchmark_train' ]];then - IFS='=' - _val=(${value}) - param_value="${_val[0]}=${param_value}" - fi + new_params="${key}:${param_value}" IFS=";" cmd="sed -i '${line}s/.*/${new_params}/' '${filename}'" @@ -255,4 +251,4 @@ for batch_size in ${batch_size_list[*]}; do fi done done -done \ No newline at end of file +done