torch.Tensor.is_floating_point

Tensor.is_floating_point() bool 返回原文,因为这句话已经是自然通顺且易于理解的。

如果 self 的数据类型是浮点数类型,则返回 True。

本页目录