cuda devices should have same dtype (#25470)
Summary:
addresses https://github.com/pytorch/pytorch/issues/25465
was passing in two tensors of different dtypes for a check making sure the two tensors were on the same device.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25470
Differential Revision: D17132404
Pulled By: mrshenli
fbshipit-source-id: b03093b8324c98ec4c51be05b3abf9250c680c23