From dd14f7f0913f7db34d8891d797c80d081b45b224 Mon Sep 17 00:00:00 2001 From: Yanxing Shi <48111042+Yanxing-Shi@users.noreply.github.com> Date: Wed, 29 Sep 2021 10:50:00 +0800 Subject: [PATCH] [cherry-pick] fix paddle.device.cuda.get_device_properties doc (#36174) * test=document_fix * test=document_fix * test=document_fix * test=document_fix --- python/paddle/device/cuda/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/paddle/device/cuda/__init__.py b/python/paddle/device/cuda/__init__.py index a559df21ad2..4a65f53fe58 100644 --- a/python/paddle/device/cuda/__init__.py +++ b/python/paddle/device/cuda/__init__.py @@ -212,15 +212,15 @@ def get_device_properties(device=None): Return the properties of given device. Args: - device(paddle.CUDAPlace or int or str): The device, the id of the device - or the string name of device like 'gpu:x' which to get the properties of - the device from. If device is None, the device is the current device. + device(paddle.CUDAPlace or int or str): The device, the id of the device or + the string name of device like 'gpu:x' which to get the properties of the + device from. If device is None, the device is the current device. Default: None. 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 - memory available on device and the number of multiprocessors on the device. + memory available and the number of multiprocessors on the device. Examples: -- GitLab