Hi, can you help me with a minimal examples of converting a tf.scatter_nd using torch.Tensor.scatter_add_.
The closest I’ve found is using the fancy indexing in pytorch, https://gist.github.com/airalcorn2/c7846d6fcb58a30b25ea6d97e16fe025.
But the fancy indexing technique does not match with tf.scatter_nd when there is duplication in the index tensor, because in tf the behavior is accumulating, while fancy indexing will just replace the value at that index.
Thanks.