PyTorch torch.is_conj function
PyTorch torch reference manual
torch.is_conj A function in PyTorch for checking whether a tensor is a conjugate tensor.
Function definition
torch.is_conj(input)
Usage examples
Example
import
torch
x
=
torch.
tensor
(
[
1
+2j
,
3
+4j
]
)
(
torch.
is_conj
(
x
)
)
Create a conjugate tensor
y
=
torch.
conj
(
x
)
(
torch.
is_conj
(
y
)
)