torch.is_floating_point¶ torch.is_floating_point(input)¶ 如果 input 的数据类型是浮点数据类型,即 torch.float64、 torch.float32、 torch.float16 和 torch.bfloat16 之一,则返回 True。 参数 input (Tensor) – 输入张量。