[ torch 参数更多]torch.conj_physical

torch.conj_physical

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

paddle.conj

paddle.conj(x,
            name=None)

Pytorch 参数更多,具体如下:

参数映射

| PyTorch | PaddlePaddle | 备注 | | ————- | ———— | —————————————————— | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | | out | - | 表示输出的 Tensor ,paddle 无此参数, 需要转写。 |

out:指定输出

# Pytorch 写法
torch.conj_physical(input, out=out)

# Paddle 写法
paddle.assign(paddle.conj(input), output=out)