提交 fe70bd9c 编写于 作者: Y Yifei Feng 提交者: GitHub

Merge pull request #6367 from caisq/r0.12-tutorial-test

Improve data existence check in test_tutorials.sh: ptb_word_lm
......@@ -230,7 +230,9 @@ test_ptb_word_lm() {
PTB_DATA_URL="http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz"
DATA_DIR="${TUT_TEST_DATA_DIR}/ptb"
if [[ ! -d "${DATA_DIR}/simple-examples/data" ]]; then
if [[ ! -f "${DATA_DIR}/simple-examples/data/ptb.train.txt" ]] || \
[[ ! -f "${DATA_DIR}/simple-examples/data/ptb.valid.txt" ]] || \
[[ ! -f "${DATA_DIR}/simple-examples/data/ptb.test.txt" ]]; then
# Download and extract data
echo "Downloading and extracting PTB data from \"${PTB_DATA_URL}\" to "\
"${DATA_DIR}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册