Загрузка
torch.complex128input (Tensor) – the input tensor.
Example:
>>> torch.is_complex(torch.tensor([1, 2, 3], dtype=torch.complex64))
True
>>> torch.is_complex(torch.tensor([1, 2, 3], dtype=torch.complex128))
True
>>> torch.is_complex(torch.tensor([1, 2, 3], dtype=torch.int32))
False
>>> torch.is_complex(torch.tensor([1.0, 2.0, 3.0], dtype=torch.float16))
False