the left two tensors are the source value and index of each value at target tensor. I wanted to map the source value to the target tensor based on its index. e.g. a1’s index is 3 so a1 went to the third position target sensor. How can I do this in pytorch? Any help will be apprecaited!
It sounds like this is basically implemented by scatter_add_ depending on how exactly you want the 1-based indexing/ignoring values mapped to 0 to work.