Save some memory in scatter (#62516)
Summary:
Also removes some redundant parenthesis for clarity.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62516
Reviewed By: andwgu
Differential Revision: D30030546
Pulled By: SciPioneer
fbshipit-source-id: e106486f70b9590bf3dcffb76d23f5725737542f