评价此页

torch.Tensor.is_signed#

Tensor.is_signed() bool#

如果 self 的数据类型是有符号数据类型,则返回 True。