update scatter formula (#64546)
authorkshitij12345 <kshitijkalambarkar@gmail.com>
Wed, 8 Sep 2021 16:52:53 +0000 (09:52 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 8 Sep 2021 17:02:35 +0000 (10:02 -0700)
commit195cb4efa8b204ee1c9cb908308d516b812790e2
tree031ad5f76d6822b41906bbca04aef493bb9c1105
parent1409492fdbfd4293635a335761fd53c53b2ec047
update scatter formula (#64546)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/63430

Already tested OpInfo gradient tests
https://github.com/pytorch/pytorch/blob/544c8e6a5d26efdf1cf679b313893fe119825930/torch/testing/_internal/common_methods_invocations.py#L8575-L8577

Pull Request resolved: https://github.com/pytorch/pytorch/pull/64546

Reviewed By: saketh-are

Differential Revision: D30768759

Pulled By: albanD

fbshipit-source-id: 27d144971c51a956a232fc7d02df5c9d2706d565
tools/autograd/derivatives.yaml