Enable Half/BFloat16 support for to_dense and coalesce methods. (#72397)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/72397
Test Plan: Imported from OSS
Reviewed By: jbschlosser, zou3519
Differential Revision: D34286114
Pulled By: cpuhrsch
fbshipit-source-id: a4f7e2abc3b2d37437cbd09d693c1b409bb011b9
(cherry picked from commit 74f94447fcf12ff7c740e1008c84d0df9ec9e1f5)