[仅参数名不一致]torch.nn.functional.pdist
torch.nn.functional.pdist
torch.nn.functional.pdist(input, p=2)
参数映射
| PyTorch | PaddlePaddle | 备注 |
|---|---|---|
| input | x | 输入的 Tensor,仅参数名不一致。 |
| p | p | 计算 p-norm 距离的 p 参数。 |

torch.nn.functional.pdist(input, p=2)
| PyTorch | PaddlePaddle | 备注 |
|---|---|---|
| input | x | 输入的 Tensor,仅参数名不一致。 |
| p | p | 计算 p-norm 距离的 p 参数。 |