Skip to content

Commit

Permalink
fix example/aishell local/train.sh if condition bug, test=asr (Paddle…
Browse files Browse the repository at this point in the history
  • Loading branch information
lemondy authored and luotao1 committed Jun 11, 2024
1 parent c1a1528 commit 5657d3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/aishell/asr0/local/train.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/aishell/asr1/local/train.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/aishell/asr3/local/train.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5657d3e

Please sign in to comment.