torch.Tensor.Tensor.is_floating_point
Tensor.is_floating_point(): booleanReturns true if the tensor has a floating point dtype (float32, float16).
Returns
booleanTensor.is_floating_point(): booleanReturns true if the tensor has a floating point dtype (float32, float16).
boolean