torch.conj_physical
- torch.conj_physical(input, *, out=None) → Tensor
Computes the element-wise conjugate of the given
inputtensor. Ifhas a non-complex dtype, this function just returns .
Computes the element-wise conjugate of the given input tensor.
If has a non-complex dtype, this function just returns .
inputExample:
>>> torch.conj_physical(torch.tensor([-1 + 1j, -2 + 2j, 3 - 3j]))
tensor([-1 - 1j, -2 - 2j, 3 + 3j])