torch.Tensor.cpu(memory_format=torch.preserve_format)
paddle.Tensor.cpu()
PyTorch 相比 Paddle 支持更多其他参数,具体如下: