[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

basic question on how "import" works

[*u23885 at c009 3_NeuralNetworks]$ cat foo.py*
from __future__ import print_function

# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)

[u23885 at c009 3_NeuralNetworks]$
when the above code is executed, equivalent of
*$ python foo.py*

the output is as follows:
Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.
Extracting /tmp/data/train-images-idx3-ubyte.gz
Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes.
Extracting /tmp/data/train-labels-idx1-ubyte.gz
Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes.
Extracting /tmp/data/t10k-images-idx3-ubyte.gz
Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes.
Extracting /tmp/data/t10k-labels-idx1-ubyte.gz
My questions are:

   1. where are the write / print statements that display *Successfully
   downloaded, extracting ...*
   2. I don't see any such files in /tmp/data on my system, why?
   3. (this is part of a code for training a neuronal network which works
   as expected, it's just for my own understanding of how this works -- Thank

Joseph Pareti - Artificial Intelligence consultant
cell +49 1520 1600 209
cell +39 339 797 0644