Implement histogramdd on CPU (#65318)
Summary:
Implements `torch.histogramdd` analogous to `numpy.histogramdd`.
Builds on https://github.com/pytorch/pytorch/pull/58780, generalizing the existing `torch.histogram` kernel to handle D-dimensional inputs.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65318
Reviewed By: soulitzer
Differential Revision: D31654555
Pulled By: saketh-are
fbshipit-source-id: 14b781fac0fd3698b052dbd6f0fda46e50d4c5f1