[Discussion] MXNet 2.0 Roadmap (was: APIs that might be a good idea to break in 2.0)
Let's start a discussion here about the roadmap towards MXNet 2.0. We are looking for:
- New features that are useful to your research and development.
- Improvements and patches to existing features.
- APIs that should be fixed.
If you have any item that you'd like to propose to have in the roadmap, please do:
- Create (or locate existing) issue for the item, note the issue number.
- Comment in this issue: 1) the above issue number, 2) one sentence of what the item is about and why it's useful to you.
- Indicate whether you'd be willing to help out on the item.
Given that this would be a major release, we'd have the opportunity to make backward incompatible changes. This would allow us to visit some topics that require large changes such as dropping support for python2, transitioning fully to cmake, making the tensor library numpy-compatible, or even new programming models.
Now that we decided to follow semantic versioning for releases, it would be a good idea to coordinate features and API changes to make the best use of the next major release. Thus, I propose that we use this issue to track the APIs we'd like to change in the next major version.
The candidates I've collected so far:
- remove legacy ops such as batch-norm v1
- reorganizing namespace for utility functions such as
downloadin #9671 - transform argument in the constructor of existing vision dataset API.
Once there are more of such requests, I will try to organize these API-breaking requests better.
Do we have sufficient automated testing to catch accidental lapses?
If not, can we have a volunteer to work on writing these automated test-cases? How do we track this task?
Refactors of the cpp-package and other C++ APIs. I would like that.
- consistent use of "axis"/"dim(s)" keyword arguments in all operators, for example:
- swapaxes uses dim1, dim2
- expand_dims uses axis
- expose optimizer in Module API
@sandeep-krishnamurthy Please tag this - API Change, Call for Contribution, Roadmap.
#9881
kvstore should not be public API
we should merge element wise ops with broadcast ops and dispatch the different implementation only based on the shape, so that symbol and ndarray +-*/ are consistent
contrib.ctc_loss should make into supported operator.
#11031
#10807
fix_gamma=False for mxnet.symbol.BatchNorm
#11141
#11134
Gluon RNN layer parameters are currently saved through unfused cells, causing the name to be something like "_unfused.0.l_cell.weight". This caused trouble in #11482 when I removed unfused cells. The workaround is to override _collect_params_with_prefix function to add the prefix. In 2.0, we should:
- [ ] remove the _collect_params_with_prefix in Gluon RNN layer
- [ ] write a converter for parameter formats
- [ ] start versioning parameter files.
#11953
#12197 in using integer types for index instead of float.
Taking a brief look at Data Iterators, it would seem the iterators are split up between the mx.io module and mx.image module. And there does not seem to be any method/process( correct me if I am wrong) in the split. For instance,
- ImageRecordIter and ImageRecordUInt8Iter( along with CSVIter, NDArrayIter, LibSVMIter) are under mx.io
- whereas ImageIter and ImageDetIter are under mx.image module
And
- There are image processing functions like imdecode, scale_down, resize_short etc.. under mx.image here - http://mxnet.incubator.apache.org/api/python/image/image.html#image-processing-functions
- And there are very similar image augmenter functions like - ResizeAug, CenterCropAug, etc.. here - http://mxnet.incubator.apache.org/api/python/image/image.html#image-iterators
Is there any specific reason for this kind of design? It might be good to take a relook at this and reorganize this, even if it leads to breaking a few APIs.
And there is similar functionality in the gluon interface too( and I am not including that in this discussion).
3. transform argument in the constructor of existing vision dataset API.
What is the proposed change here? is the plan to remove transform as an argument to the constructor?
@anirudhacharya yes, because dataset interface has a .transform method that serves the same purpose but strictly more flexible.
@anirudhacharya
I can see your concern, but iterators included in mxnet.image are specifically designed for images and serve as compliments to the purpose agnostic iterators in mxnet.io.
Same stories apply to all these image transformation functions provided in mxnet.image, users basically can use them as an opencv alternative in order to process mx.nd.NDArray instead of numpy.array