Implement in-place method torch.cumsum_ and torch.cumprod_ (#47651)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/47193
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47651
Reviewed By: zou3519
Differential Revision: D24992438
Pulled By: ezyang
fbshipit-source-id: c38bea55f4af1fc92be780eaa8e1d462316e6192