未验证 提交 6076197b 编写于 作者: H Hui Zhang 提交者: GitHub

Merge pull request #733 from PaddlePaddle/fixtest

fix chunk mode test script
......@@ -17,7 +17,7 @@ config_path=$1
ckpt_prefix=$2
chunk_mode=false
if [[ ${config_path} =~ ^chunk_ ]];then
if [[ ${config_path} =~ ^.*chunk_.*yaml$ ]];then
chunk_mode=true
fi
......
......@@ -17,9 +17,10 @@ config_path=$1
ckpt_prefix=$2
chunk_mode=false
if [[ ${config_path} =~ ^chunk_ ]];then
if [[ ${config_path} =~ ^.*chunk_.*yaml$ ]];then
chunk_mode=true
fi
echo "chunk mode ${chunk_mode}"
# download language model
......
......@@ -17,7 +17,7 @@ config_path=$1
ckpt_prefix=$2
chunk_mode=false
if [[ ${config_path} =~ ^chunk_ ]];then
if [[ ${config_path} =~ ^.*chunk_.*yaml$ ]];then
chunk_mode=true
fi
......
......@@ -16,7 +16,7 @@ config_path=$1
ckpt_prefix=$2
chunk_mode=false
if [[ ${config_path} =~ ^chunk_ ]];then
if [[ ${config_path} =~ ^.*chunk_.*yaml$ ]];then
chunk_mode=true
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册