is_complex(torch.Tensor)

Tensor.is_complex() bool

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