Fix bug [#66780]: wrong input to torch.is_floating_point (#66783)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66783
Test Plan: Imported from OSS
Reviewed By: jbschlosser
Differential Revision: D31802971
Pulled By: cpuhrsch
fbshipit-source-id: 6a7d8b83dad219fd683504f9084b77358800507c