[参数完全一致]torch.cuda.max_memory_allocated

torch.cuda.max_memory_allocated

torch.cuda.max_memory_allocated(device)

paddle.device.cuda.max_memory_allocated

paddle.device.cuda.max_memory_allocated(device)

功能一致,参数完全一致,具体如下:

参数映射

| PyTorch | PaddlePaddle | 备注 | | ————- | ———— | —————————————————— | | device | device | 表示选定的设备、设备 ID。|