torch.is_complex
-
torch.is_complex(input) -> (bool)
-
Returns True if the data type of
input
is a complex data type i.e., one oftorch.complex64
, andtorch.complex128
.- Parameters
-
input (Tensor) – the input tensor.
© 2019 Torch Contributors
Licensed under the 3-clause BSD License.
https://pytorch.org/docs/1.8.0/generated/torch.is_complex.html