torch.is_complex¶ torch.is_complex(input)¶ 如果 input 的資料類型是複數資料類型,即 torch.complex64 和 torch.complex128 之一,則傳回 True。 參數 input (Tensor) – 輸入張量。