Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 658 Bytes

get_device_name_cn.rst

File metadata and controls

23 lines (14 loc) · 658 Bytes

get_device_name

返回从 CUDA 函数 cudaDeviceProp 获取到的设备名称。

参数

  • device (paddle.CUDAPlace|int,可选) - 希望获取名称的设备或者设备 ID。如果 device 为 None(默认),则为当前的设备。

返回

str:设备的名称。

代码示例

COPY-FROM: paddle.device.cuda.get_device_name