Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
9b277b33
Commit
9b277b33
authored
Jun 26, 2019
by
Leona C
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add doc on iGPU to v0.22 doc
parent
79587d93
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
85 additions
and
29 deletions
+85
-29
conf.py
doc/sphinx/source/conf.py
+2
-2
generic-configs.rst
doc/sphinx/source/frameworks/generic-configs.rst
+32
-2
onnx_integ.rst
doc/sphinx/source/frameworks/onnx_integ.rst
+6
-7
index.rst
doc/sphinx/source/inspection/index.rst
+4
-4
doc-contributor-README.rst
doc/sphinx/source/project/doc-contributor-README.rst
+36
-9
BUILDING.md
python/BUILDING.md
+2
-2
README.md
python/README.md
+3
-3
No files found.
doc/sphinx/source/conf.py
View file @
9b277b33
...
...
@@ -73,11 +73,11 @@ author = 'Intel Corporation'
# built documents.
#
# The short X.Y version.
version
=
'0.2
1
'
version
=
'0.2
2
'
# The Documentation full version, including alpha/beta/rc tags. Some features
# available in the latest code will not necessarily be documented first
release
=
'0.2
1.0
'
release
=
'0.2
2-doc
'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
...
...
doc/sphinx/source/frameworks/generic-configs.rst
View file @
9b277b33
...
...
@@ -20,15 +20,45 @@ something like:
Find or display nGraph Version
-------------------------------
==============================
If you're working with the :doc:`../python_api/index`, the following command
may be useful:
.. code-block:: console
python3 -c "import ngraph as ng; print('nGraph version: ',ng.__version__)";
Localize environment variables
==============================
Another generic configuration option is to activate ``NGRAPH_CPU_DEBUG_TRACER``,
a runtime environment variable and useful tool for data scientists.
To activate this tool, set the ``env`` var ``NGRAPH_CPU_DEBUG_TRACER=1``.
It will dump ``trace_meta.log`` and ``trace_bin_data.log``.
To specify the names of logs with those flags:
::
NGRAPH_TRACER_LOG = "meta.log"
NGRAPH_BIN_TRACER_LOG = "bin.log"
The meta_log line contains::
kernel_name, serial_number_of_op, tensor_id, symbol_of_in_out, num_elements, shape, binary_data_offset, mean_of_tensor, variance_of_tensor
A line example from unit-test might look like::
K=Add S=0 TID=0_0 >> size=4 Shape{2, 2} bin_data_offset=8 mean=1.5 var=1.25
The binary_log line contains::
tensor_id, binary data (tensor data)
FMV
---
...
...
doc/sphinx/source/frameworks/onnx_integ.rst
View file @
9b277b33
...
...
@@ -10,7 +10,7 @@ nGraph's internal representation and converted to ``Function`` objects, which
can be compiled and executed on one of nGraph's backends.
You can use nGraph's Python API to run an ONNX model and nGraph can be used
as an ONNX backend using the add-on package `nGraph
-ONNX <ngraph_onnx>
`_.
as an ONNX backend using the add-on package `nGraph
ONNX
`_.
.. note:: In order to support ONNX, nGraph must be built with the
...
...
@@ -33,8 +33,7 @@ for nGraph, ONNX and NumPy:
Importing an ONNX model
-----------------------
You can download models from the `ONNX Model Zoo <onnx_model_zoo_>`_.
For example ResNet-50:
You can download models from the `ONNX Model Zoo`_. For example, ResNet-50:
::
...
...
@@ -92,9 +91,9 @@ data:
Find more information about nGraph and ONNX in the
`nGraph
-ONNX <ngraph_onnx>
`_ GitHub repository.
`nGraph
ONNX
`_ GitHub repository.
.. _ngraph
_onnx: https://github.com/NervanaSystems/ngraph-onnx/
.. _ngraph
_onnx_
building: https://github.com/NervanaSystems/ngraph-onnx/blob/master/BUILDING.md
.. _
onnx_model_
zoo: https://github.com/onnx/models
.. _ngraph
ONNX: https://github.com/NervanaSystems/ngraph-onnx
.. _ngraph
ONNX
building: https://github.com/NervanaSystems/ngraph-onnx/blob/master/BUILDING.md
.. _
ONNX model
zoo: https://github.com/onnx/models
doc/sphinx/source/inspection/index.rst
View file @
9b277b33
...
...
@@ -6,11 +6,11 @@ Visualization Tools
nGraph provides serialization and deserialization facilities, along with the
ability to create image formats or a PDF.
When visualization is enabled,
a ``dot`` file gets generated, along with a
``png``. The default can be adjusted by setting the
``NGRAPH_VISUALIZE_TREE_OUTPUT_FORMAT`` flag to another format, like
PDF.
When visualization is enabled,
``svg`` files for your graph get generated. The
default can be adjusted by setting the ``NGRAPH_VISUALIZE_TRACING_FORMAT``
flag to another format, like PNG or
PDF.
.. note:: Large graphs are usually not legible with formats like PDF.
.. note:: Large graphs are usually not legible with formats like PDF.
Large graphs may require additional work to get into a human-readable format.
On the back end, very long edges will need to be cut to make (for example) a
...
...
doc/sphinx/source/project/doc-contributor-README.rst
View file @
9b277b33
...
...
@@ -18,9 +18,36 @@
Contributing to documentation
=============================
.. important:: Read this for changes affecting **anything** in ``ngraph/doc``
.. note:: Tips for contributors who are new to the highly-dynamic
environment of documentation in AI software:
For updates to the nGraph Library ``/doc`` repo, please submit a PR with
* A good place to start is "document something you figured out how to
get working". Content changes and additions should be targeted at
something more specific than "developers". If you don't understand
how varied and wide the audience is, you'll inadvertently break or block
things.
* There are experts who work on all parts of the stack; try asking how
documentation changes ought to be made in their respective sections.
* Start with something small. It is okay to add a "patch" to fix a typo
or suggest a word change; larger changes to files or structure require
research and testing first, as well as some logic for why you think
something needs changed.
* Most documentation should wrap at about ``80``. We do our best to help
authors source-link and maintain their own code and contributions;
overwriting something already documented doesn't always improve it.
* Be careful editing files with links already present in them; deleting
links to papers, citations, or sources is discouraged.
* Please do not submit Jupyter* notebook code to the nGraph Library
or core repos; best practice is to maintain any project-specific
examples, tests, or walk-throughs in a separate repository and to link
back to the stable ``op`` or Ops that you use in your project.
For updates within the nGraph Library ``/doc`` repo, please submit a PR with
any changes or ideas you'd like integrated. This helps us maintain trackability
with respect to changes made, additions, deletions, and feature requests.
...
...
@@ -31,12 +58,11 @@ files to another format with a tool like ``pypandoc`` and share a link
to your efforts on our `wiki`_.
Another option is to fork the `ngraph repo`_, essentially snapshotting it at
that point in time, and to build
a
Jupyter\* notebook or other set of docs around
that point in time, and to build Jupyter\* notebook or other set of docs around
it for a specific use case. Add a note on our wiki to show us what you
did; new and novel applications may have their projects highlighted on an
upcoming `ngraph.ai`_ release.
.. note:: Please do not submit Jupyter* notebook code to the nGraph Library
or core repos; best practice is to maintain any project-specific examples,
tests, or walk-throughs in a separate repository.
...
...
@@ -45,9 +71,11 @@ upcoming `ngraph.ai`_ release.
Documenting source code examples
--------------------------------
When **verbosely** documenting functionality of specific sections of code -- whether
they are entire code blocks within a file, or code strings that are **outside**
the nGraph Library's `documentation repo`_, here is an example of best practice:
When **verbosely** documenting functionality of specific sections of code --
whether they are entire code blocks within a file, or code strings that are
**outside** the nGraph Library's `documentation repo`_, here is an example
of best practice:
Say a file has some interesting functionality that could benefit from more
explanation about one or more of the pieces in context. To keep the "in context"
...
...
@@ -73,8 +101,7 @@ the folder where the ``Makefile`` is that generates the documentation you're
writing.
See the **note** at the bottom of this page for more detail about how
this works in the current |version| version of Intel nGraph library
documentation.
this works in the current |version| version of nGraph Library documentation.
Adding captions to code blocks
...
...
python/BUILDING.md
View file @
9b277b33
...
...
@@ -2,8 +2,8 @@
## Building nGraph Python Wheels
If you want to try a newer version of nGraph's Python API than is available
from
PyPI, you can build your own latest version from the source code. This
If you want to try a newer version of nGraph's Python API than is available
from
PyPI, you can build your own latest version from the source code. This
process is very similar to what is outlined in our
[
ngraph_build
]
instructions
with two important differences:
...
...
python/README.md
View file @
9b277b33
...
...
@@ -18,8 +18,8 @@ boost compared to native implementations.
nGraph can be used directly with the
[
Python API
][
api_python
]
described here, or
with the
[
C++ API
][
api_cpp
]
described in the
[
core documentation
]
. Alternatively,
its performance benefits can be realized through
a frontend
such as
[
TensorFlow
][
frontend_tf
]
,
[
MXNet
][
frontend_mxnet
]
,
and
[
ONNX
][
frontend_onnx
]
.
its performance benefits can be realized through
frontends
such as
[
TensorFlow
][
frontend_tf
]
,
[
PaddlePaddle
][
paddle_paddle
]
and
[
ONNX
][
frontend_onnx
]
.
You can also create your own custom framework to integrate directly with the
[
nGraph Ops
]
for highly-targeted graph execution.
...
...
@@ -77,7 +77,7 @@ print('Result = ', result)
[
up to 45X
]:
https://ai.intel.com/ngraph-compiler-stack-beta-release/
[
frontend_onnx
]:
https://pypi.org/project/ngraph-onnx/
[
frontend_mxnet
]:
https://pypi.org/project/ngraph-mxnet/
[
paddle_paddle
]:
https://ngraph.nervanasys.com/docs/latest/frameworks/paddle_integ.html
[
frontend_tf
]:
https://pypi.org/project/ngraph-tensorflow-bridge/
[
ngraph_github
]:
https://github.com/NervanaSystems/ngraph
"nGraph on GitHub"
[
ngraph_building
]:
https://github.com/NervanaSystems/ngraph/blob/master/python/BUILDING.md
"Building nGraph"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment