How to achieve tf.scatter_nd in pytorch? project for copynet

Oh, and I see below there’s a ScatterAdd function which would solve my issue of having repeated indices in the input sequence!