mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

[Discussion] MXNet 2.0 Roadmap (was: APIs that might be a good idea to break in 2.0)

Open szha opened this issue 8 years ago • 77 comments

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:

  1. remove legacy ops such as batch-norm v1
  2. reorganizing namespace for utility functions such as download in #9671
  3. 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.

szha avatar Feb 02 '18 21:02 szha

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?

bhavinthaker avatar Feb 07 '18 16:02 bhavinthaker

Refactors of the cpp-package and other C++ APIs. I would like that.

larroy avatar Feb 15 '18 12:02 larroy

  • 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

fhieber avatar Feb 15 '18 12:02 fhieber

@sandeep-krishnamurthy Please tag this - API Change, Call for Contribution, Roadmap.

anirudhacharya avatar Feb 27 '18 20:02 anirudhacharya

#9881

szha avatar Apr 09 '18 03:04 szha

kvstore should not be public API

eric-haibin-lin avatar May 03 '18 22:05 eric-haibin-lin

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

szha avatar May 10 '18 06:05 szha

contrib.ctc_loss should make into supported operator.

szha avatar May 17 '18 04:05 szha

#11031

szha avatar May 29 '18 06:05 szha

#10807

szha avatar May 30 '18 22:05 szha

fix_gamma=False for mxnet.symbol.BatchNorm

RogerChern avatar Jun 01 '18 07:06 RogerChern

#11141

szha avatar Jun 04 '18 22:06 szha

#11134

szha avatar Jun 04 '18 22:06 szha

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.

szha avatar Jul 30 '18 18:07 szha

#11953

szha avatar Aug 03 '18 22:08 szha

#12197 in using integer types for index instead of float.

szha avatar Aug 16 '18 18:08 szha

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).

anirudhacharya avatar Oct 17 '18 21:10 anirudhacharya

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 avatar Oct 17 '18 22:10 anirudhacharya

@anirudhacharya yes, because dataset interface has a .transform method that serves the same purpose but strictly more flexible.

szha avatar Oct 17 '18 23:10 szha

@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

zhreshold avatar Oct 18 '18 00:10 zhreshold