Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of missing support from MXNet in DGL project #435

Closed
3 of 7 tasks
jermainewang opened this issue Mar 7, 2019 · 16 comments
Closed
3 of 7 tasks

List of missing support from MXNet in DGL project #435

jermainewang opened this issue Mar 7, 2019 · 16 comments
Labels
help wanted Need helps from the community topic: MXNet Issues only in MXNet backend

Comments

@jermainewang
Copy link
Member

jermainewang commented Mar 7, 2019

🚀 Feature

We use this issue as a list of required but currently missing features of MXNet. We also need to prioritize them.

Performance related:

  • CustomOp (ends up with autograd.Function, and it works pretty well)
@jermainewang jermainewang added help wanted Need helps from the community topic: MXNet Issues only in MXNet backend labels Mar 7, 2019
@jermainewang jermainewang changed the title List of missing support of MXNet in DGL project List of missing support from MXNet in DGL project Mar 7, 2019
@zheng-da
Copy link
Collaborator

zheng-da commented Mar 7, 2019

should we create an issue at mxnet repo?

@VoVAllen
Copy link
Collaborator

VoVAllen commented Mar 7, 2019

What's the difference between segment_sum and scatter_sum?

@jermainewang
Copy link
Member Author

segment_sum assumes continuous index while scatter_sum not.

@jermainewang
Copy link
Member Author

should we create an issue at mxnet repo?

Is there an on-going issue in mxnet we could refer to?

@szha
Copy link
Member

szha commented Mar 7, 2019

I added related issue from what I know. Please create for the rest

@eric-haibin-lin
Copy link
Member

eric-haibin-lin commented Mar 7, 2019

we can create separate issues (one for each item) in mxnet with labels (sparse, numpy, etc) and use this issue to track the progress

@jermainewang
Copy link
Member Author

That's a good idea. I could help create these issues in MXNet and maintain links to this issue if you want.

@zheng-da
Copy link
Collaborator

zheng-da commented Mar 7, 2019

should we list all problems here and create issues in the mxnet repo for each category? i guess it's nice to have everything in one place.

@zheng-da
Copy link
Collaborator

zheng-da commented Mar 7, 2019

Here is a list of other issues in MXNet:

  • constructing a CSR matrix from the coo input is slow: constructing a CSR matrix from the coo input is slow. apache/mxnet#14311
  • some of the MXNet operators in CPU are very slow. A typical example is concat. Actually, any operators that share the same implementation for CPU and GPU may have a performance issue. Specially, any operators implemented with mshadow or kernel::launch potentially have performance issues.
  • _backward_take in GPU is very slow.
  • MXNet operators don't support int64. Thus, they may break for large NDArrays (#elements > 2B)

@zheng-da
Copy link
Collaborator

zheng-da commented Mar 7, 2019

actually, split with sizes_of_sections is supported in MXNet now. I forgot to update it in DGL.

@junrushao
Copy link
Member

junrushao commented Mar 9, 2019

Do you guys really need zero-copy an NDArray from numpy? If so, I can try to implement.

@jermainewang
Copy link
Member Author

@zheng-da I've updated the list. Removed sparse related requirements as DGL now handles all the sparse operations. Could you track the status again and update this thread?

@junrushao
Copy link
Member

@jermainewang zero-copy from numpy has been implemented.

@zheng-da
Copy link
Collaborator

@junrushao1994 do we need to change anything to use zero-copy from numpy?

@junrushao
Copy link
Member

@zheng-da Try this. Note that only non-strided arrays are supported

@zheng-da
Copy link
Collaborator

split and zero copy from NumPy is done.
#660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need helps from the community topic: MXNet Issues only in MXNet backend
Projects
None yet
Development

No branches or pull requests

6 participants