torch.is_complex
-
torch.is_complex(input) -
Возвращает True, если тип данных
inputявляется комплексным типом данных, то есть одним изtorch.complex64, иtorch.complex128.- Параметры
-
input (Tensor) – входной тензор.
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.is_complex.html