[ 仅参数名不一致 ]torch.utils.dlpack.to_dlpack

torch.utils.dlpack.to_dlpack

torch.utils.dlpack.to_dlpack(tensor)

paddle.utils.dlpack.to_dlpack

paddle.utils.dlpack.to_dlpack(x)

两者功能一致,参数名不一致,具体如下:

参数映射

PyTorch PaddlePaddle 备注
tensor x Paddle Tensor,仅参数名不一致。