Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 25720a8

Browse files
indiediyessi
authored andcommitted
Doc validation2 (#684)
* File renaming missed in git add earlier * More doc validation for neon install * Typo on sphinx syntax for ordered list * Missed a delete * More clarity on optional steps WRT virtualenv and opt dirs * Rendering subbullets as bullets for clarity and fix typo * New docbuild graphic now working * Framework intg guide updated with ngraph-neon doc improvements
1 parent 3244741 commit 25720a8

File tree

4 files changed

+64
-31
lines changed

4 files changed

+64
-31
lines changed

doc/sphinx/source/framework-integration-guides.rst

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ neon |trade|
1616
Use ``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/
70.1 KB
Loading

doc/sphinx/source/index.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ nGraph library
1919

2020
Welcome to Intel® nGraph™, an open source C++ library and compiler. This
2121
project enables modern compute platforms to run and train :abbr:`Deep Neural Network (DNN)`
22-
models. It is framework-neutral and supports a variety of backends used by
22+
models. It is framework neutral and supports a variety of backends used by
2323
:abbr:`Deep Learning (DL)` frameworks.
2424

2525
.. image:: graphics/ngraph-ecosys.png
@@ -31,14 +31,15 @@ a trained model, see our section on How to :doc:`howto/import` and start working
3131
with the nGraph APIs.
3232

3333
.. note:: The library code is under active development as we're continually
34-
adding support for more ops, more frameworks, and more backends.
34+
adding support for more kinds of DL models and ops, framework compiler
35+
optimizations, and backends.
3536

36-
The nGraph++ library translates a framework’s representation of computations
37+
The nGraph library translates a framework’s representation of computations
3738
into an :abbr:`Intermediate Representation (IR)` that promotes computational
3839
efficiency on target hardware. Initially-supported backends include Intel
39-
Architecture CPUs (``CPU``), the Intel® Nervana Neural Network Processor™ (NNP),
40-
and NVIDIA\* GPUs. Currently-supported compiler optimizations include efficient
41-
memory management and data layout abstraction.
40+
Architecture CPUs (``CPU``), the Intel® Nervana Neural Network Processor™ (Intel®
41+
``NNP``), and NVIDIA\* GPUs. Currently-supported compiler optimizations include
42+
efficient memory management and data layout abstraction.
4243

4344
Further project details can be found on our :doc:`project/about` page.
4445

doc/sphinx/source/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The process documented here will work on Ubuntu\* 16.04 (LTS)
8585
8686
$ make # note: make -j <N> may work, but sometimes results in out-of-memory
8787
# errors if too many compilation processes are used
88-
88+
$ make install
8989
9090
#. (Optional, requires `doxygen`_, `Sphinx`_, and `breathe`_). Run ``make html``
9191
inside the ``doc/sphinx`` directory of the cloned source to build a copy of

0 commit comments

Comments
 (0)