Add more logging to debug test_reduce_sum_cuda_twice (#56406)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56406
Been hard to reproduce
https://github.com/pytorch/pytorch/issues/50840, adding some debug log to get a
better sense of the issue.
ghstack-source-id: 126874222
Test Plan: waitforbuildbot
Reviewed By: rohan-varma
Differential Revision: D27863328
fbshipit-source-id: e6f125b77cfb636b90598eb54395609654f5e139