aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/udacity
diff options
context:
space:
mode:
authorGravatar Evgeny Mazovetskiy <otzy@users.noreply.github.com>2017-02-08 20:11:04 +0100
committerGravatar GitHub <noreply@github.com>2017-02-08 20:11:04 +0100
commit00c2ae32880b8453e4d5e47d0648bcfed4a39c18 (patch)
tree9923250cafdb972b33bcfdf3a86db71b281374ba /tensorflow/examples/udacity
parente946a6b63979a63f9e5a1d1603f6cc21d8aad1cf (diff)
set correct target directory for tar extractall()
fixes a wrong path when data_root is other than '.'
Diffstat (limited to 'tensorflow/examples/udacity')
-rw-r--r--tensorflow/examples/udacity/1_notmnist.ipynb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/udacity/1_notmnist.ipynb b/tensorflow/examples/udacity/1_notmnist.ipynb
index 4b0a20b1dd..521cbf3000 100644
--- a/tensorflow/examples/udacity/1_notmnist.ipynb
+++ b/tensorflow/examples/udacity/1_notmnist.ipynb
@@ -219,7 +219,7 @@
" print('Extracting data for %s. This may take a while. Please wait.' % root)\n",
" tar = tarfile.open(filename)\n",
" sys.stdout.flush()\n",
- " tar.extractall()\n",
+ " tar.extractall(data_root)\n",
" tar.close()\n",
" data_folders = [\n",
" os.path.join(root, d) for d in sorted(os.listdir(root))\n",