From 59ab8171717f36154041993e8d89799ae4c2b8d2 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Thu, 10 Feb 2022 14:26:16 +0800 Subject: [PATCH] fix bug --- test_tipc/benchmark_train.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test_tipc/benchmark_train.sh b/test_tipc/benchmark_train.sh index cc61567e..fc49cbb3 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 -- GitLab