torch.conj_physical(input, *, out=None)
paddle.conj(x, name=None)
Pytorch 参数更多,具体如下:
| PyTorch | PaddlePaddle | 备注 | | ————- | ———— | —————————————————— | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | | out | - | 表示输出的 Tensor ,paddle 无此参数, 需要转写。 |
# Pytorch 写法 torch.conj_physical(input, out=out) # Paddle 写法 paddle.assign(paddle.conj(input), output=out)