Hi all,

I am looking for an MxNet solution to PyTorch's `scatter_add`, for which I know 
there are similar threads on this Forum. My current solution after browsing 
through them was to use `scatter_nd` and then `broadcast_add`.

However, none of the solutions address [the correctness of the gradient 
computation](https://mxnet.apache.org/versions/master/api/python/docs/api/legacy/ndarray/ndarray.html#mxnet.ndarray.scatter_nd)
 when using scatter_nd with duplicate indices. There are duplicate indices in 
my data, and I suspect this is one of reasons making my training so unstable.

Ultimately I am wondering what useful alternatives to `scatter_nd` there are in 
MxNet that can handle duplicate indices.

Thanks,





---
[Visit 
Topic](https://discuss.mxnet.apache.org/t/alternative-s-to-scatter-nd-when-there-are-duplicate-indices/6795/1)
 or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.mxnet.apache.org/email/unsubscribe/602da7a2b7f004371cb3b35a7f6b41a44564a103ad4459cbbe6fac4f58deeaf8).

Reply via email to