未验证 提交 dd14f7f0 编写于 作者: Y Yanxing Shi 提交者: GitHub

[cherry-pick] fix paddle.device.cuda.get_device_properties doc (#36174)

* test=document_fix

* test=document_fix

* test=document_fix

* test=document_fix
上级 b0289de5
...@@ -212,15 +212,15 @@ def get_device_properties(device=None): ...@@ -212,15 +212,15 @@ def get_device_properties(device=None):
Return the properties of given device. Return the properties of given device.
Args: Args:
device(paddle.CUDAPlace or int or str): The device, the id of the device device(paddle.CUDAPlace or int or str): The device, the id of the device or
or the string name of device like 'gpu:x' which to get the properties of the string name of device like 'gpu:x' which to get the properties of the
the device from. If device is None, the device is the current device. device from. If device is None, the device is the current device.
Default: None. Default: None.
Returns: Returns:
_gpuDeviceProperties: the properties of the device which include ASCII string _gpuDeviceProperties: The properties of the device which include ASCII string
identifying device, major compute capability, minor compute capability, global identifying device, major compute capability, minor compute capability, global
memory available on device and the number of multiprocessors on the device. memory available and the number of multiprocessors on the device.
Examples: Examples:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册