Use deterministic impl of `index_put` and `index` backward CPU when `torch.are_deterministic_algorithms_enabled() == True` (#51388)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/51366
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51388
Reviewed By: zou3519
Differential Revision: D26235290
Pulled By: ngimel
fbshipit-source-id: 64cce1a5e75d8a9ce9807c28d641da82ede666e2