提交 a93053c3 编写于 作者: N Neal Wu 提交者: TensorFlower Gardener

Removed the "Run a TensorFlow demo model" section from the g3docs because it...

Removed the "Run a TensorFlow demo model" section from the g3docs because it is no longer applicable after moving the tensorflow/models directory
Change: 141504491
上级 c0a07f25
...@@ -487,46 +487,6 @@ Hello, TensorFlow! ...@@ -487,46 +487,6 @@ Hello, TensorFlow!
>>> >>>
``` ```
### Run a TensorFlow demo model
All TensorFlow packages, including the demo models, are installed in the Python
library. The exact location of the Python library depends on your system, but
is usually one of:
```bash
/usr/local/lib/python2.7/dist-packages/tensorflow
/usr/local/lib/python2.7/site-packages/tensorflow
```
You can find out the directory with the following command (make sure to use the
Python you installed TensorFlow to, for example, use `python3` instead of
`python` if you installed for Python 3):
```bash
$ python -c 'import os; import inspect; import tensorflow; print(os.path.dirname(inspect.getfile(tensorflow)))'
```
The simple demo model for classifying handwritten digits from the MNIST dataset
is in the sub-directory `models/image/mnist/convolutional.py`. You can run it
from the command line as follows (make sure to use the Python you installed
TensorFlow with):
```bash
# Using 'python -m' to find the program in the python search path:
$ python -m tensorflow.models.image.mnist.convolutional
Extracting data/train-images-idx3-ubyte.gz
Extracting data/train-labels-idx1-ubyte.gz
Extracting data/t10k-images-idx3-ubyte.gz
Extracting data/t10k-labels-idx1-ubyte.gz
...etc...
# You can alternatively pass the path to the model program file to the python
# interpreter (make sure to use the python distribution you installed
# TensorFlow to, for example, .../python3.X/... for Python 3).
$ python /usr/local/lib/python2.7/dist-packages/tensorflow/models/image/mnist/convolutional.py
...
```
## Installing from sources ## Installing from sources
When installing from source you will build a pip wheel that you then install When installing from source you will build a pip wheel that you then install
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册