torch.is_complex¶ torch.is_complex(input)¶ 返回 True,如果 input 的数据类型是复杂数据类型,即 torch.complex64 、 torch.complex128 之一。 参数: input (Tensor) – 输入张量。