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