MXNet Change Log
- Added full support for NVIDIA Volta GPU Architecture and CUDA 9. Training CNNs is up to 3.5x faster than Pascal when using float16 precision.
- Enabled JIT compilation. Autograd and Gluon hybridize now use less memory and has faster speed. Performance is almost the same with old symbolic style code.
- Improved ImageRecordIO image loading performance and added indexed RecordIO support.
- Added better openmp thread management to improve CPU performance.
New Features - Gluon
- Added enhancements to the Gluon package, a high-level interface designed to be easy to use while keeping most of the flexibility of low level API. Gluon supports both imperative and symbolic programming, making it easy to train complex models imperatively with minimal impact on performance. Neural networks (and other machine learning models) can be defined and trained with
- Added new loss functions -
gluon.Trainernow allows reading and setting learning rate with
- Added API
HybridBlock.exportfor exporting gluon models to MXNet format.
- Convolutional recurrent network cells for RNN, LSTM and GRU.
New Features - Autograd
- Added enhancements to
autogradpackage, which enables automatic differentiation of NDArray operations.
autograd.Functionallows defining both forward and backward computation for custom operators.
mx.autograd.gradand experimental second order gradient support (most operators don't support second order gradient yet).
- Autograd now supports cross-device graphs. Use
x.copyto(mx.cpu())to do computation on multiple devices.
New Features - Sparse Tensor Support
- Added support for sparse matrices.
- Added limited cpu support for two sparse formats in
- Added a sparse dot product operator and many element-wise sparse operators.
- Added a data iterator for sparse data input -
- Added three optimizers for sparse gradient updates:
RowSparseNDArrayin distributed kvstore.
Other New Features
- Added limited support for fancy indexing, which allows you to very quickly access and modify complicated subsets of an array's values.
x[idx_arr0, idx_arr1, ..., idx_arrn]is now supported. Features such as combining and slicing are planned for the next release. Checkout master to get a preview.
- Random number generators in
mx.sym.random.*now support both CPU and GPU.
Symbolnow supports "fluent" methods. You can now use
x.exp()etc instead of
mx.rtc.CudaModulefor writing and running CUDA kernels from python.
multi_precisionoption to optimizer for easier float16 training.
- Better support for IDE auto-completion. IDEs like PyCharm can now correctly parse mxnet operators.
- Operators like
mx.sym.random_*are now moved to
mx.sym.random.*. The old names are still available but deprecated.
random_*are now merged as
random.*, which supports both scalar and
- Fixed a bug that causes
argsortoperator to fail on large tensors.
- Fixed numerical stability issues when summing large tensors.
- Fixed a bug that causes arange operator to output wrong results for large ranges.
- Improved numerical precision for unary and binary operators on
For more information and examples, see full release notes