Tutorials¶
MXNet tutorials can be found in this section. A variety of language bindings are available for MXNet (including Python, Scala, Java, Clojure, C++ and R) and we have a different tutorial section for each language.
Are you new to MXNet, and don’t have a preference on language? We currently recommend starting with Python, and specifically the Gluon APIs (versus Module APIs) as they’re more flexible and easier to debug.
Another great resource for learning MXNet is our examples section which includes a wide variety of models (from basic to state-of-the-art) for a wide variety of tasks including: object detection, style transfer, reinforcement learning, and many others.
Contents:
- Python Tutorials
- Scala Tutorials
- Java Tutorials
- Clojure Tutorials
- C++ Tutorials
- R Tutorials
- Perl Tutorials
- Contributing Tutorials
Python Tutorials¶
We have two types of API available for Python: Gluon APIs and Module APIs. See here for a comparison.
A comprehensive introduction to Gluon can be found at Dive into Deep Learning. Structured like a book, it build up from first principles of deep learning and take a theoretical walkthrough of progressively more complex models using the Gluon API. Also check out the 60-Minute Gluon Crash Course if you’re short on time or have used other deep learning frameworks before.
Use the tutorial selector below to filter to the relevant tutorials. You might see a download link in the top right corner of some tutorials. Use this to download a Jupyter Notebook version of the tutorial, and re-run and adjust the code as you wish.
Select API:
Getting Started
Models
Practitioner Guides
- Gotchas using NumPy
- Multi-GPU training (new!) (Alternative )
- Checkpointing and Model Serialization (a.k.a. saving and loading) (Alternative)
- Distributed Training
- Inference using an ONNX model
- Fine-tuning an ONNX model on Gluon
- Visualizing Decisions of Convolutional Neural Networks
- Learning Rate Finder
- Learning Rate Schedules
- Advanced Learning Rate Schedules
- Profiling MXNet Models
- Module to Gluon API
- Gluon end to end from training to inference
- Automatic Mixed Precision in Gluon
API Guides
Core APIs
NDArray
Symbol
- Symbol API (Caution: written before Gluon existed)
KVStore
Gluon APIs
Blocks and Operators
Autograd
Data
Getting Started
Models
Practitioner Guides
- Predicting on new images using a pre-trained ImageNet model
- Fine-Tuning a pre-trained ImageNet model with a new dataset
- Large-Scale Multi-Host Multi-GPU Image Classification
- Importing an ONNX model into MXNet
- Optimizing Deep Learning Computation Graphs with TensorRT
- How to build and install MXNet with MKL-DNN backend
API Guides
Core APIs
NDArray
Sparse NDArray
Symbol
KVStore
Module APIs
Data
Java Tutorials¶
Clojure Tutorials¶
- How to use the NDArray API to perform vector/matrix/tensor operations
- Multi-GPU and multi-host distributed training with the KVStore API
- How to use the Symbol API to assemble neural networks from layers
- How to use the Module API (deprecated)
Contributing Tutorials¶
We really appreciate contributions, and tutorials are a great way to share your knowledge and help the community. After you have followed these steps, please submit a pull request on Github.
And if you have any feedback on this section please raise an issue on Github.