提交 f03e88c2 编写于 作者: W wandongdong

update run_train.sh

上级 8c300451
......@@ -22,9 +22,9 @@ run_ascend()
exit 1
fi
if [ ! -d $5 ]
if [ ! -d $5 ] && [ ! -f $5 ]
then
echo "error: DATASET_PATH=$5 is not a directory"
echo "error: DATASET_PATH=$5 is not a directory or file"
exit 1
fi
......
......@@ -22,9 +22,9 @@ run_ascend()
exit 1
fi
if [ ! -d $5 ]
if [ ! -d $5 ] && [ ! -f $5 ]
then
echo "error: DATASET_PATH=$5 is not a directory"
echo "error: DATASET_PATH=$5 is not a directory or file"
exit 1
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册