!2568 update run_train.sh of mobilenetv2_quant && resnet50_quant

Merge pull request !2568 from wandongdong/r0.3
This commit is contained in:
mindspore-ci-bot 2020-06-24 17:13:53 +08:00 committed by Gitee
commit d8969d243e
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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