There are three ways of checking is_floating_point. They have been listed below in the increasing order of time taken to return

torch.Tensor.dtype.is_floating_point

torch.Tensor.is_floating_point() (2x slower than the fastest)

torch.is_floating_point() (3x slower than the fastest)