Shortcuts

torch.Tensor.is_complex

Tensor.is_complex() bool

如果 self 的数据类型是复杂数据类型,则返回 True。