forked from OSSInnovation/mindspore
!2568 update run_train.sh of mobilenetv2_quant && resnet50_quant
Merge pull request !2568 from wandongdong/r0.3
This commit is contained in:
commit
d8969d243e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue