評價此頁

torch.Tensor.is_floating_point#

Tensor.is_floating_point() bool#

如果 self 的資料型別是浮點資料型別,則返回 True。