aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/ci_build/builds/test_tutorials.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/tools/ci_build/builds/test_tutorials.sh')
-rwxr-xr-xtensorflow/tools/ci_build/builds/test_tutorials.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/tools/ci_build/builds/test_tutorials.sh b/tensorflow/tools/ci_build/builds/test_tutorials.sh
index dc89919d73..67e5af5564 100755
--- a/tensorflow/tools/ci_build/builds/test_tutorials.sh
+++ b/tensorflow/tools/ci_build/builds/test_tutorials.sh
@@ -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}"