torch.Tensor.float(memory_format)
paddle.Tensor.astype(dtype)
PyTorch 相比 Paddle 支持更多其他参数,具体如下:
float32