Skip to content

Commit fe70bd9

Browse files
authored
Merge pull request tensorflow#6367 from caisq/r0.12-tutorial-test
Improve data existence check in test_tutorials.sh: ptb_word_lm
2 parents efb6688 + b849df5 commit fe70bd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tensorflow/tools/ci_build/builds/test_tutorials.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ test_ptb_word_lm() {
230230
PTB_DATA_URL="http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz"
231231

232232
DATA_DIR="${TUT_TEST_DATA_DIR}/ptb"
233-
if [[ ! -d "${DATA_DIR}/simple-examples/data" ]]; then
233+
if [[ ! -f "${DATA_DIR}/simple-examples/data/ptb.train.txt" ]] || \
234+
[[ ! -f "${DATA_DIR}/simple-examples/data/ptb.valid.txt" ]] || \
235+
[[ ! -f "${DATA_DIR}/simple-examples/data/ptb.test.txt" ]]; then
234236
# Download and extract data
235237
echo "Downloading and extracting PTB data from \"${PTB_DATA_URL}\" to "\
236238
"${DATA_DIR}"

0 commit comments

Comments
 (0)