提交 785bae06 编写于 作者: H heya02

bug_fix

上级 5249501b
......@@ -64,12 +64,14 @@ $REDIS_BIN -h $SERVER -p $PORT flushall
# remove temp data generated in last time
PRED_FILE="/tmp/mnist_output_prediction.*"
if [ "$PRED_FILE" ]; then
ls ${PRED_FILE}
if [ $? -eq 0 ]; then
rm -rf $PRED_FILE
fi
TRAINING_FILE="/tmp/mnist2_feature.part*"
if [ ! "$TRAINING_FILE" ]; then
ls ${TRAINING_FILE}
if [ $? -ne 0 ]; then
echo "There is no data in /tmp, please prepare data with "python prepare.py" firstly"
exit 1
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册