torch.is_floating_point¶ torch.is_floating_point(input)¶ 如果 input 的資料型別是浮點資料型別(即 torch.float64、torch.float32、torch.float16 和 torch.bfloat16 之一),則返回 True。 引數 input (Tensor) – 輸入張量。