TUTORIALAI & dataFETCHED

PyTorch torch.conj_physical 函数

PyTorch torch.conj_physical 函数 PyTorch torch.conj_physical 函数 Pytorch torch 参考手册 torch.conj_physical 是 PyTorch 中用于逐元素计算物理共轭的函数。 函数定义 torch.conj_physical(input, *, out=None) 使用示例 实例 [mycode4 type='python&..

Updated 7/16/2026

Tutorial detail pages default to noindex.

PyTorch torch.conj_physical 函数

PyTorch torch.conj_physical 函数


Pytorch torch 参考手册 Pytorch torch 参考手册

torch.conj_physical 是 PyTorch 中用于逐元素计算物理共轭的函数。

函数定义

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

使用示例

实例

import torch

# 计算物理共轭示例
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 参考手册