PyTorch torch.conj_physical Function

PyTorch torch.conj_physical Function


Pytorch torch 参考手册PyTorch torch Reference Manual

torch.conj_physicalIt is a function in PyTorch used to compute the physical conjugate element-wise.

Function Definition

torch.conj_physical(input, *, out=None)

Usage Example

Example

import torch

# Compute physical conjugate example
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 参考手册PyTorch torch Reference Manual

Other Extensions