[composite compliance] backward: gather, take_along_dim (#77152)
Reference : https://github.com/pytorch/pytorch/issues/69991
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77152
Approved by: https://github.com/Lezcano, https://github.com/soulitzer