Skip to content

Commit

Permalink
Docs fixes for v0.2 (#128)
Browse files Browse the repository at this point in the history
* Fixes to docs

Signed-off-by: ptredak <[email protected]>

* Added link to homepage in side panel

Signed-off-by: ptredak <[email protected]>

* Added optimal configuration

Signed-off-by: ptredak <[email protected]>

* Add version selector

Signed-off-by: ptredak <[email protected]>
  • Loading branch information
ptrendx authored and JanuszL committed Aug 21, 2018
1 parent 14fbc48 commit 0fbf3fc
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ DALI is preinstalled in the `NVIDIA GPU Cloud <https://ngc.nvidia.com>`_ TensorF
Installing prebuilt DALI packages
---------------------------------

Prerequisities
^^^^^^^^^^^^^^
Prerequisites
^^^^^^^^^^^^^

.. |driver link| replace:: **NVIDIA Driver**
.. _driver link: https://www.nvidia.com/drivers
Expand Down Expand Up @@ -62,8 +62,8 @@ Installation
Compiling DALI from source
--------------------------

Prerequisities
^^^^^^^^^^^^^^
Prerequisites
^^^^^^^^^^^^^

.. |nvjpeg link| replace:: **nvJPEG library**
.. _nvjpeg link: https://developer.nvidia.com/nvjpeg
Expand Down
21 changes: 19 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,23 @@
except:
git_sha = u'0000000'

# The short X.Y version
version = str(version_short + u"-" + git_sha)


git_sha = git_sha[:7] if len(git_sha) > 7 else git_sha

version = str(version_long + u"-" + git_sha)
# The full version, including alpha/beta/rc tags
release = str(version_long)

# hack: version is used for html creation, so put the version picker
# link here as well:
version = version + """<br/>
Version select: <select onChange="window.location.href = this.value" onFocus="this.selectedIndex = -1">
<option value="https://docs.nvidia.com/deeplearning/sdk/dali-developer-guide/">Current release</option>
<option value="https://docs.nvidia.com/deeplearning/sdk/dali-master-branch-user-guide/docs/">master (unstable)</option>
<option value="https://docs.nvidia.com/deeplearning/sdk/dali-archived/index.html">Older releases</option>
</select>"""

# -- General configuration ---------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand All @@ -59,6 +71,8 @@
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinx.ext.ifconfig',
'sphinx.ext.extlinks',
'nbsphinx'
]

Expand Down Expand Up @@ -183,3 +197,6 @@


# -- Extension configuration -------------------------------------------------
extlinks = {'issue': ('https://github.com/NVIDIA/DALI/issues/%s',
'issue '),
'fileref': ('https://github.com/NVIDIA/DALI/tree/' + (git_sha if git_sha != u'0000000' else "master") + '/%s', ''),}
9 changes: 9 additions & 0 deletions docs/examples/getting started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
"It is a single library, that can be easily integrated into different deep learning training and inference applications."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Optimal configuration\n",
"\n",
"DALI offers ease-of-use and flexibility across GPU enabled systems with direct framework plugins, multiple input data formats, and configurable graphs. DALI can help achieve overall speedup on deep learning workflows that are bottlenecked on I/O pipelines due to the limitations of CPU cycles. Typically, systems with high GPU to CPU ratio (such as Amazon EC2 P3.16xlarge, NVIDIA DGX1-V or upcoming NVIDIA DGX-2) are constrained on the host CPU, thereby under-utilizing the available GPU compute capabilities. DALI significantly accelerates input processing on such dense GPU configurations to achieve the overall throughput."
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/pytorch/pytorch-resnet50.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Requirements
Training
--------

To train a model, run `main.py <https://github.com/NVIDIA/DALI/blob/master/docs/examples/pytorch/main.py>`_ with the desired model architecture and the path to the ImageNet dataset:
To train a model, run :fileref:`docs/examples/pytorch/main.py` with the desired model architecture and the path to the ImageNet dataset:

.. code-block:: bash
Expand Down
11 changes: 9 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ NVIDIA DALI documentation
:start-after: overview-begin-marker-do-not-remove
:end-before: overview-end-marker-do-not-remove

.. warning::
You are currently viewing unstable developer preview of the documentation. To see the documentation for the latest stable release click `here <https://docs.nvidia.com/deeplearning/sdk/index.html#data-loading>`_
.. ifconfig:: "dev" in release

.. warning::
You are currently viewing unstable developer preview of the documentation. To see the documentation for the latest stable release click `here <https://docs.nvidia.com/deeplearning/sdk/index.html#data-loading>`_

.. toctree::
:hidden:

Documentation home <self>

.. toctree::
:maxdepth: 2
Expand Down

0 comments on commit 0fbf3fc

Please sign in to comment.