Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PyTorch torch.conj_physical function

PyTorch torch.conj_physical function

PyTorch torch.conj_physical function


PyTorch torch reference manual 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

)

print

(

result

)

 

tensor([1-2j, 3-4j, 5-6j])


PyTorch torch reference manual PyTorch torch reference manual