[12/N] Update scatter with CPU/CUDA implementations (#86408)
Differential Revision: [D40181613](https://our.internmc.facebook.com/intern/diff/D40181613)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/86408
Approved by: https://github.com/kwen2501