fix example/aishell local/train.sh if condition bug, test=asr (#3146)

pull/3155/head
lemondy 2 years ago committed by GitHub
parent c0cc850776
commit 9c387577fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
#!/bin/bash
if [ $# -lt 2 ] && [ $# -gt 3 ];then
if [ $# -lt 2 ] || [ $# -gt 3 ];then
echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)"
exit -1
fi

@ -17,7 +17,7 @@ if [ ${seed} != 0 ]; then
echo "using seed $seed & FLAGS_cudnn_deterministic=True ..."
fi
if [ $# -lt 2 ] && [ $# -gt 3 ];then
if [ $# -lt 2 ] || [ $# -gt 3 ];then
echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)"
exit -1
fi

@ -1,6 +1,6 @@
#!/bin/bash
if [ $# -lt 2 ] && [ $# -gt 3 ];then
if [ $# -lt 2 ] || [ $# -gt 3 ];then
echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)"
exit -1
fi

Loading…
Cancel
Save