Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Containers examples & other updates #2

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,17 @@ To build with testing the notebooks (requires GPU):
```bash
make
```

## Troubleshooting

You might need to init and update your submodules.

```bash
git submodule update --init --recursive
```

You might need to update the environment for the latest modules.

```bash
conda env update -f environment.yml
```
31 changes: 23 additions & 8 deletions api/gluon/containers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This section covers the classes to construct neural network models.
Blocks
------

The :py:mod:`mxnet.gluon.nn` module provides three classes to construct basc
The :py:mod:`mxnet.gluon.nn` module provides three classes to construct basic
blocks for a neural network model:

.. autosummary::
Expand All @@ -21,23 +21,25 @@ blocks for a neural network model:

The difference between these three classes:

- :py:class:`Block`: the bass class for any neural nework layers and models.
- :py:class:`Block`: the base class for any neural network layers and models.
`A look under the hood of gluon`_ and
`Gluon - Neural network building blocks`_ are tutorials that provide details
on how to use this class of container.
- :py:class:`HybridBlock`: a subclass of :py:class:`Block` that allows to
hybridize a model. It constraints operations can be run in the ``forward``
method, e.g. the `print` function doesn't work any more. Check tutorial XXX
for more details.

- :py:class:`SymbolBlock`: a sublcass of :py:class:`Block` that is able to wrap
method, e.g. the `print` function doesn't work any more.
- :py:class:`SymbolBlock`: a subclass of :py:class:`Block` that is able to wrap
a :py:class:`mxnet.symbol.Symbol` instance into a :py:class:`Block`
instance. Check XXX-Symbol tutorials and how to XXX to use this class.
instance.


Sequential containers
---------------------

Besides inheriting :py:class:`mxnet.gluon.nn.Block` to create a neural network
models, :py:mod:`mxnet.gluon.nn` provides two classes to construct a model by
stacking layers sequentially. Refer to XXX for tutorials how to use them.
stacking layers sequentially. Refer to the tutorials list in the
`Further Reading`_ section on how to use them.

.. currentmodule:: mxnet.gluon.nn

Expand All @@ -48,6 +50,7 @@ stacking layers sequentially. Refer to XXX for tutorials how to use them.
Sequential
HybridSequential


Concurrent containers
---------------------

Expand All @@ -65,4 +68,16 @@ ResNet and Inception block in GoogLeNet.
Concurrent
HybridConcurrent


Further Reading
---------------

- `A look under the hood of gluon`_
- `Gluon - Neural network building blocks`_


.. disqus::


.. _A look under the hood of gluon: https://gluon.mxnet.io/chapter03_deep-neural-networks/plumbing.html
.. _Gluon - Neural network building blocks: https://mxnet.incubator.apache.org/tutorials/gluon/gluon.html
4 changes: 2 additions & 2 deletions build/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
'sphinx.ext.napoleon',
# 'sphinx.ext.mathjax',
# 'sphinx.ext.viewcode',
'breathe',
'breathe'
# 'mxdoc'
'sphinxcontrib.disqus'
# 'sphinxcontrib.disqus'
]

disqus_shortname = 'mxnet'
Expand Down
8 changes: 4 additions & 4 deletions develop/tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Tutorials
:align: left

If you would like to learn deep learning algorithms, please refer to
"dive into deep learning" book. It explain every algorithm from the
beggining, and implements them from scratch with MXNet.
the "Dive into Deep Learning" book. It explains every algorithm from the
beginning, and implements them with MXNet from scratch.

In this unit, we will go thourgh how to use MXNet to implement various deep
In this unit, we will go through how to use MXNet to implement various deep
learning algorithms.

Getting Started
---------------

We recommend you to start with :doc:`crash-course/index`. Gluon is the
We recommend you start with :doc:`crash-course/index`. Gluon is the
imperative frontend of MXNet. Once you've completed the course, you should be
able to understand how to use the major components of Gluon, and define and
train a basic neural network to classify images.
Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ dependencies:
- nbsphinx
- recommonmark
- notedown
- mxnet-cu92
- mxnet
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the problem is the crash course cannot be evaluated anymore, with other tutorials that need GPU. I suggest to keep -cu92 here, but note in the readme that you may change it to mxnet and use make EVAL=0 if you don't have GPUs

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the default should be CPU for docs/website development. For CI we can have a flag that requires GPU and runs the tests.
I'd like the make docs process to be as fast as possible without having a bunch of Python tests running...

Or if GPU/full testing is default the I'd at least want to have a config / flag that limits things down to the bare necessities.

I'd rather not have the requirements locked to GPU though, since the benefit of CPU as default is that when you clone the repo and run things they work out of the box on every environment without having to edit the config.

- pypandoc
- sphinx_materialdesign_theme
- breathe
- mock
- awscli
- sphinxcontrib-disqus
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This plugin is broken, need to use a fixed version