PyTorch torch.conj_physical function
PyTorch torch reference manual
torch.conj_physical is a function in PyTorch used to compute the physical conjugate of each element.
Function definition
torch.conj_physical(input, *, out=None)
Usage examples
Example
import
torch
Example of computing the physical conjugate
x
=
torch.
tensor
(
[
1
+2j
,
3
+4j
,
5
+6j
]
)
result
=
torch.
conj_physical
(
x
)
(
result
)