MXNet - Python API

Many docstrings contain example code, which demonstrates the basic usage of the routine. The examples assume that MXNet is imported with:

>>> import mxnet as mx

Note

A convenient way to execute examples is the %doctest_mode mode of Jupyter notebook, which allows for pasting of multi-line examples contains >>> and preserves indentation. Run %doctest_mode? in Jupyter notebook for more details.