未验证 提交 b05ed189 编写于 作者: D Double_V 提交者: GitHub

Merge pull request #5428 from LDOUBLEV/dygraph

[benchmark]fix bug
...@@ -32,11 +32,7 @@ function func_sed_params(){ ...@@ -32,11 +32,7 @@ function func_sed_params(){
array=(${params}) array=(${params})
key=${array[0]} key=${array[0]}
value=${array[1]} value=${array[1]}
if [[ $value =~ 'benchmark_train' ]];then
IFS='='
_val=(${value})
param_value="${_val[0]}=${param_value}"
fi
new_params="${key}:${param_value}" new_params="${key}:${param_value}"
IFS=";" IFS=";"
cmd="sed -i '${line}s/.*/${new_params}/' '${filename}'" cmd="sed -i '${line}s/.*/${new_params}/' '${filename}'"
...@@ -255,4 +251,4 @@ for batch_size in ${batch_size_list[*]}; do ...@@ -255,4 +251,4 @@ for batch_size in ${batch_size_list[*]}; do
fi fi
done done
done done
done done
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册