torch.is_complex¶ torch.is_complex(input)¶ 如果 input 的数据类型是复数数据类型,即 torch.complex64 或 torch.complex128,则返回 True。 参数 input (张量) – 输入的张量。