TUTORIALAI 与数据科学FETCHED
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&..
更新于 2026/7/16
教程详情页默认 noindex。
PyTorch torch.conj_physical 函数
PyTorch torch.conj_physical 函数
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])
# 计算物理共轭示例
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 参考手册