2017-01-22 22:50:33 -08:00
# MXNet - Python API
2016-03-19 20:37:09 -04:00
2017-05-19 13:05:12 -07:00
MXNet provides a rich Python API to serve a broad community of Python developers.
2017-05-25 12:47:16 -07:00
In this section, we provide an in-depth discussion of the functionality provided by
2017-05-19 13:05:12 -07:00
various MXNet Python packages. We have included code samples for most of the APIs
for improved clarity. These code samples will run as-is as long as MXNet is first
imported by running:
2017-03-06 11:36:12 -08:00
``` python
>> > import mxnet as mx
```
``` eval_rst
.. note:: A convenient way to execute examples is the ``%doctest_mode`` mode of
2017-05-19 13:05:12 -07:00
Jupyter notebook, which allows for pasting multi-line examples containing
``>>>`` while preserving indentation. Run ``%doctest_mode?`` in Jupyter notebook
2017-03-06 11:36:12 -08:00
for more details.
```
2017-09-10 22:21:15 -07:00
## NDArray API
2017-03-06 11:36:12 -08:00
``` eval_rst
2017-09-07 13:45:21 -07:00
.. toctree::
2017-09-10 22:21:15 -07:00
:maxdepth: 1
2017-09-07 13:45:21 -07:00
2017-09-10 22:21:15 -07:00
ndarray/ndarray.md
ndarray/random.md
ndarray/linalg.md
ndarray/sparse.md
ndarray/contrib.md
```
## Symbol API
``` eval_rst
.. toctree::
:maxdepth: 1
2017-09-14 23:57:06 -07:00
symbol/symbol.md
2017-09-10 22:21:15 -07:00
symbol/random.md
symbol/linalg.md
symbol/sparse.md
symbol/contrib.md
2017-09-30 11:18:19 -07:00
symbol/rnn.md
2017-09-10 22:21:15 -07:00
```
## Module API
``` eval_rst
.. toctree::
:maxdepth: 1
module/module.md
2017-09-30 11:18:19 -07:00
executor/executor.md
2017-09-10 22:21:15 -07:00
```
## Autograd API
``` eval_rst
.. toctree::
:maxdepth: 1
autograd/autograd.md
```
## Gluon API
``` eval_rst
.. toctree::
:maxdepth: 1
gluon/gluon.md
2017-09-30 11:18:19 -07:00
gluon/nn.md
gluon/rnn.md
gluon/loss.md
gluon/data.md
gluon/model_zoo.md
gluon/contrib.md
2017-09-10 22:21:15 -07:00
```
## KVStore API
2017-09-07 13:45:21 -07:00
2017-09-10 22:21:15 -07:00
``` eval_rst
.. toctree::
:maxdepth: 1
kvstore/kvstore.md
```
## IO API
``` eval_rst
.. toctree::
:maxdepth: 1
io/io.md
```
## Image API
``` eval_rst
.. toctree::
:maxdepth: 1
image/image.md
```
## Optimization API
``` eval_rst
.. toctree::
:maxdepth: 1
optimization/optimization.md
```
## Callback API
``` eval_rst
.. toctree::
:maxdepth: 1
callback/callback.md
```
## Metric API
``` eval_rst
2017-03-06 11:36:12 -08:00
.. toctree::
2017-09-10 22:21:15 -07:00
:maxdepth: 1
2017-03-06 11:36:12 -08:00
2017-09-10 22:21:15 -07:00
metric/metric.md
2017-03-06 11:36:12 -08:00
```
2017-09-26 12:10:26 -07:00
## Run-Time Compilation API
``` eval_rst
.. toctree::
:maxdepth 1
rtc/rtc.md
```
2018-01-24 15:20:30 -08:00
## Contrib Package
``` eval_rst
.. toctree::
:maxdepth: 1
contrib/contrib.md
contrib/text.md
```