@@ -16,17 +16,18 @@ neon |trade|
1616Use ``neon `` as a frontend for nGraph backends
1717-----------------------------------------------
1818
19- ``neon `` is a open source Deep Learning framework. For info about how to
20- interact and use a model with this framework, see the `ngraph-neon docs `_.
21- This section covers installation only.
19+ ``neon `` is an open source Deep Learning framework that has a history
20+ of `being the fastest `_ framework `for training CNN-based models with GPUs `_.
21+ Detailed info about neon's features and functionality can be found in the
22+ `neon docs `_. This section covers installing neon on an existing
23+ system that already has an ``ngraph_dist `` installed.
2224
2325.. important :: The numbered instructions below pick up from where
2426 the :doc: `install ` instructions left off, and they presume that your system
25- already has the library installed at ``$HOME/ngraph_dist `` as the default
26- location. If the |nGl | code has not yet been installed to your system, you
27- can follow the instructions on the `ngraph-neon python README `_ to install
28- everything at once. If the |nGl | code base already is installed on a system,
29- use this process.
27+ already has the ngraph library installed installed at ``$HOME/ngraph_dist ``
28+ as the default location. If the |nGl | code has not yet been installed to
29+ your system, you can follow the instructions on the `ngraph-neon python README `_
30+ to install everything at once.
3031
3132
3233#. Set the ``NGRAPH_CPP_BUILD_PATH `` and the ``LD_LIBRARY_PATH `` path to the
@@ -39,31 +40,61 @@ This section covers installation only.
3940 export LD_LIBRARY_PATH=$HOME /ngraph_dist/lib/
4041
4142
42- #. Install the dependency for the ``neon `` framework:
43+ #. neon uses the :command: `pip ` package manager during installation; install it
44+ with Python version 3.5 or higher:
4345
4446 .. code-block :: console
4547
46- $ sudo apt-get install python3-pip
48+ $ sudo apt-get install python3-pip python3-venv
4749
4850
49- #. (Optionally) activate a virtualenv if you like working with virtualenvs and
50- go to the `python ` subdirectory of the ``ngraph `` repo:
51+ #. Clone the ngraph-neon integration repo somewhere you can find it easily. The
52+ install configuration we'll document here places it under a directory we'll
53+ create named ``frameworks ``
54+
55+ * This section is optional, but it is the configuration we'll assume for the
56+ ``ngraph-neon `` documenation:
57+
58+ .. code-block :: console
59+
60+ $ sudo mkdir -p /opt/frameworks
61+ $ sudo chown -R username:username /opt/frameworks
62+ $ cd /opt/frameworks
63+
64+ * This section is required:
65+
66+ .. code-block :: console
67+
68+ $ git clone [email protected] :NervanaSystems/ngraph-neon 69+ $ cd ngraph-neon
70+
71+ #. *Optional * Activate a virtualenv if you prefer working with virtualenvs:
5172
5273 .. code-block :: console
5374
54- $ python3 -m venv .venv
55- $ . .venv/bin/activate
56- (venv)$ cd ngraph/python
57- (venv)$ pip install -U .
75+ $ python3 -m venv .
76+ $ . bin/activate
5877
59- #. See `this file `_ if you want detail about how to run unit tests. See the
60- documentation at `ngraph-neon docs `_. To test the neon install you can run
61- the sample available in the ngraph-neon clone named
62- `python examples/cifar10/cifar10_conv.py `
78+ #. Clone the ngraph-neon repo and install the neon dependencies via ``pip ``
79+ if you are using a ``.venv `` and pip3 otherwise:
6380
64- .. code-block :: console
6581
66- (venv)$ python examples/cifar10/cifar10_conv.py
82+ * For neon via virtual env:
83+
84+ .. code-block :: console
85+
86+ (.venv)$ pip install -U .
87+ Running setup.py install for neon ... done
88+ Successfully installed neon-3.0
89+
90+
91+ * For a system install of neon-ngraph:
92+
93+ .. code-block :: console
94+
95+ $ pip3 install -U .
96+ Running setup.py install for neon ... done
97+ Successfully installed neon-3.0
6798
6899
69100
@@ -281,12 +312,13 @@ your cloned version of `ngraph-tensorflow`_:
281312
282313
283314
284- .. _this file : https://github.com/NervanaSystems/ngraph/blob/master/python/README.md
285315 .. _MXNet : http://mxnet.incubator.apache.org
286316.. _bazel version 0.5.4 : https://github.com/bazelbuild/bazel/releases/tag/0.5.4
287317.. _1.3 installation guide : https://www.tensorflow.org/versions/r1.3/install/install_sources#prepare_environment_for_linux
288318.. _ngraph-tensorflow : https://github.com/NervanaSystems/ngraph-tensorflow
289319.. _/examples/mnist : https://github.com/NervanaSystems/ngraph-tensorflow/tree/develop/tensorflow/compiler/plugin/ngraph/examples/mnist
290320.. _ngraph-neon python README : https://github.com/NervanaSystems/ngraph/blob/master/python/README.md
291321.. _ngraph-neon repo's README : https://github.com/NervanaSystems/ngraph-neon/blob/master/README.md
292- .. _ngraph-neon docs : https://github.com/NervanaSystems/ngraph-neon/tree/master/doc
322+ .. _neon docs : https://github.com/NervanaSystems/neon/tree/master/doc
323+ .. _being the fastest : https://github.com/soumith/convnet-benchmarks/
324+ .. _for training CNN-based models with GPUs : https://www.microway.com/hpc-tech-tips/deep-learning-frameworks-survey-tensorflow-torch-theano-caffe-neon-ibm-machine-learning-stack/
0 commit comments