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

PyTorch torch.is_conj function

PyTorch torch.is_conj function


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

]

)

print

(

torch.

is_conj

(

x

)

)

Create a conjugate tensor

y

=

torch.

conj

(

x

)

print

(

torch.

is_conj

(

y

)

)


PyTorch torch reference manual PyTorch torch reference manual