提交 4de62ad6 编写于 作者: M Megvii Engine Team

docs(mge/device): fix docstring of get_cuda_compute_capability

GitOrigin-RevId: 4ec04e8b9b77186a3b91f4d2a0c3583539d43bc9
上级 fb49a283
......@@ -144,10 +144,13 @@ def get_mem_status_bytes(device: Optional[str] = None):
def get_cuda_compute_capability(device: int, device_type=DeviceType.CUDA) -> int:
r"""
Get compute capability of the specified device.
r"""Gets compute capability of the specified device.
It returns a version number, or `SM version`.
Args:
device: device number.
Returns:
a version number, or `SM version`.
"""
return _get_cuda_compute_capability(device, device_type)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册