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