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